Dev Essential  1.6.3
Loading...
Searching...
No Matches
type_traits.h File Reference
#include <a_util/base/feature_check/library/is_enum_v.h>
#include <type_traits>
Include dependency graph for type_traits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

namespace  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 a_util::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.
 

Variables

template<typename T>
constexpr bool std::is_enum_v = is_enum<T>::value
 
template<class T, class U>
constexpr bool a_util::is_explicitly_convertible_to_v = is_explicitly_convertible_to<T, U>::value
 

Detailed Description

Class and function templates extending std type traits functionality

Variable Documentation

◆ is_enum_v

template<typename T>
bool std::is_enum_v = is_enum<T>::value
constexpr

C++17 backport of std::is_enum_v