EnTT: src/entt/meta/adl_pointer.hpp Source File

EnTT 3.15.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>
13 decltype(auto) dereference_meta_pointer_like(const Type &value) {
14 return *value;
15}
16
21template<typename Type>
22 struct adl_meta_pointer_like {
28 static decltype(auto) dereference(const Type &value) {
29 return dereference_meta_pointer_like(value);
30 }
31};
32
33} // namespace entt
34
35#endif
entt
EnTT default namespace.
Definition dense_map.hpp:22
entt::dereference_meta_pointer_like
decltype(auto) dereference_meta_pointer_like(const Type &value)
ADL based lookup function for dereferencing meta pointer-like types.
Definition adl_pointer.hpp:13
entt::adl_meta_pointer_like
Fake ADL based lookup function for meta pointer-like types.
Definition adl_pointer.hpp:22
entt::adl_meta_pointer_like::dereference
static decltype(auto) dereference(const Type &value)
Uses the default ADL based lookup method to resolve the call.
Definition adl_pointer.hpp:28