EnTT  3.8.1
adl_pointer.hpp
1 #ifndef ENTT_META_ADL_POINTER_HPP
2 #define ENTT_META_ADL_POINTER_HPP
3 
4 
5 namespace entt {
6 
7 
14 template<typename Type>
15 decltype(auto) dereference_meta_pointer_like(const Type &value) {
16  return *value;
17 }
18 
19 
24 template<typename Type>
31  static decltype(auto) dereference(const Type &value) {
32  return dereference_meta_pointer_like(value);
33  }
34 };
35 
36 
37 }
38 
39 
40 #endif
EnTT default namespace.
Definition: algorithm.hpp:13
decltype(auto) dereference_meta_pointer_like(const Type &value)
ADL based lookup function for dereferencing meta pointer-like types.
Definition: adl_pointer.hpp:15
Fake ADL based lookup function for meta pointer-like types.
Definition: adl_pointer.hpp:25
static decltype(auto) dereference(const Type &value)
Uses the default ADL based lookup method to resolve the call.
Definition: adl_pointer.hpp:31