MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / deref

Function deref

Libs/sol/sol.hpp:1627–1635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1625
1626 template <typename T>
1627 inline decltype(auto) deref(T&& item) {
1628 using Tu = meta::unqualified_t<T>;
1629 if constexpr (meta::is_pointer_like_v<Tu>) {
1630 return *std::forward<T>(item);
1631 }
1632 else {
1633 return std::forward<T>(item);
1634 }
1635 }
1636
1637 template <typename T>
1638 inline decltype(auto) deref_move_only(T&& item) {

Callers 14

getMethod · 0.85
copy_assignMethod · 0.85
move_assignMethod · 0.85
copy_assignMethod · 0.85
move_assignMethod · 0.85
derefMethod · 0.85
~basic_referenceMethod · 0.85
basic_referenceClass · 0.85
comparsion_operator_wrapFunction · 0.85
pushMethod · 0.85
pushMethod · 0.85
callMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected