ADTF  3.18.2
type_traits.h File Reference

Class and function templates extending std type traits functionality. More...

Go to the source code of this file.

Classes

struct  underlying_type_or_type< T, bool >
 Retrieves the underlying type if T is an enum, otherwise the type itself. More...
 
struct  underlying_type_or_type< T, true >
 Retrieves the underlying type of the enum type T. More...
 
struct  is_explicitly_convertible_to< T, U >
 Checks if there is an explicitly defined conversion from U to T. More...
 

Namespaces

 a_util
 Serves as the root component, with common functionality documented in core functionality.
 

Typedefs

template<class T , bool is_enum = std::is_enum_v<T>>
using underlying_type_or_type_t = typename underlying_type_or_type< T, is_enum >::type
 Retrieves the underlying type if T is an enum, otherwise the type itself. More...
 

Variables

template<typename T >
constexpr bool is_enum_v = is_enum<T>::value
 C++17 backport of std::is_enum_v.
 
template<class T , class U >
constexpr bool is_explicitly_convertible_to_v = is_explicitly_convertible_to<T, U>::value
 Helper variable template for is_explicitly_convertible_to. More...
 

Detailed Description

Class and function templates extending std type traits functionality.

Definition in file type_traits.h.