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

Function deref

extlibs/sol3/include/sol/sol.hpp:1176–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1174
1175 template <typename T>
1176 inline decltype(auto) deref(T&& item) {
1177 using Tu = meta::unqualified_t<T>;
1178 if constexpr (meta::is_pointer_like_v<Tu>) {
1179 return *std::forward<T>(item);
1180 }
1181 else {
1182 return std::forward<T>(item);
1183 }
1184 }
1185
1186 template <typename T>
1187 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