23 #ifndef GUL14_TRAITS_H_
24 #define GUL14_TRAITS_H_
26 #include <type_traits>
52 template <
typename T,
typename =
int>
57 typename std::enable_if_t<true,
58 decltype(std::declval<T>().cbegin(),
59 std::declval<T>().cend(),
60 std::declval<typename T::value_type>(),
75 using remove_cvref =
typename std::remove_cv<std::remove_reference_t<T>>;
97 template <
typename...>
typename remove_cvref< T >::type remove_cvref_t
A template metafunction that removes const, volatile, and reference qualifiers from a type.
Definition: traits.h:87
void void_t
A type mapping an arbitrary list of types to void (for SFINAE).
Definition: traits.h:98
typename std::remove_cv< std::remove_reference_t< T > > remove_cvref
A template metafunction that removes const, volatile, and reference qualifiers from a type.
Definition: traits.h:75
Definition of macros used internally by GUL.
Namespace gul14 contains all functions and classes of the General Utility Library.
Definition: doxygen.h:26
Helper type trait object to determine if a type is a container.
Definition: traits.h:53