EnTT 3.14.0
Loading...
Searching...
No Matches
adl_pointer.hpp
1#ifndef ENTT_META_ADL_POINTER_HPP
2#define ENTT_META_ADL_POINTER_HPP
3
4namespace entt {
5
12template<typename Type>
13decltype(auto) dereference_meta_pointer_like(const Type &value) {
14 return *value;
15}
16
21template<typename Type>
28 static decltype(auto) dereference(const Type &value) {
30 }
31};
32
33} // namespace entt
34
35#endif
EnTT default namespace.
Definition dense_map.hpp:22
decltype(auto) dereference_meta_pointer_like(const Type &value)
ADL based lookup function for dereferencing meta pointer-like types.
Fake ADL based lookup function for meta pointer-like types.
static decltype(auto) dereference(const Type &value)
Uses the default ADL based lookup method to resolve the call.