EnTT  3.5.0
pointer.hpp
1 #ifndef ENTT_META_POINTER_HPP
2 #define ENTT_META_POINTER_HPP
3 
4 #include <memory>
5 #include <type_traits>
6 #include "type_traits.hpp"
7 
8 
9 namespace entt {
10 
11 
16 template<typename Type>
17 struct is_meta_pointer_like<Type *>
18  : std::true_type
19 {};
20 
21 
27 template<typename Type>
28 struct is_meta_pointer_like<std::shared_ptr<Type>>
29  : std::true_type
30 {};
31 
32 
39 template<typename Type, typename... Args>
40 struct is_meta_pointer_like<std::unique_ptr<Type, Args...>>
41  : std::true_type
42 {};
43 
44 
45 }
46 
47 
48 #endif
entt::is_meta_pointer_like
Provides the member constant value to true if a given type is a pointer-like type from the point of v...
Definition: type_traits.hpp:105
entt
EnTT default namespace.
Definition: algorithm.hpp:13