18 #include <type_traits> 23 template <
typename T> constexpr
bool is_pointer_v = std::is_pointer<T>::value;
30 template <
typename T> constexpr
bool is_const_v = std::is_const<T>::value;
33 template <
typename T,
typename U>
34 constexpr
bool is_same_v = std::is_same<T, U>::value;
40 #if (__cplusplus >= 201703L) && !defined(XRTRAITS_HAVE_CXX17) 41 #define XRTRAITS_HAVE_CXX17 44 #if defined(XRTRAITS_HAVE_CXX17) && !defined(XRTRAITS_HAVE_OPTIONAL) 45 #define XRTRAITS_HAVE_OPTIONAL 48 #if defined(XRTRAITS_HAVE_CXX17) && !defined(XRTRAITS_HAVE_CONSTEXPR_IF) 49 #define XRTRAITS_HAVE_CONSTEXPR_IF Main namespace for these C++ OpenXR utilities.
Definition: GetChained.h:26
constexpr bool is_const_v
Variable template wrapping std::is_const<T>::value.
Definition: Common.h:30
constexpr bool is_same_v
Variable template wrapping std::is_same<T, U>::value.
Definition: Common.h:34
constexpr bool is_pointer_v
Variable template wrapping std::is_pointer<T>::value.
Definition: Common.h:23
constexpr bool is_reference_v
Variable template wrapping std::is_reference<T>::value.
Definition: Common.h:27