EnTT  3.6.0
pointer.hpp
1 #ifndef ENTT_META_POINTER_HPP
2 #define ENTT_META_POINTER_HPP
3 
4 
5 #include <memory>
6 #include <type_traits>
7 #include "type_traits.hpp"
8 
9 
10 namespace entt {
11 
12 
17 template<typename Type>
18 struct is_meta_pointer_like<Type *>
19  : std::true_type
20 {};
21 
22 
28 template<typename Type>
29 struct is_meta_pointer_like<std::shared_ptr<Type>>
30  : std::true_type
31 {};
32 
33 
40 template<typename Type, typename... Args>
41 struct is_meta_pointer_like<std::unique_ptr<Type, Args...>>
42  : std::true_type
43 {};
44 
45 
46 }
47 
48 
49 #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