CatapultServer  v0.5.0.1 (Elephant)
catapult::utils::traits Namespace Reference

Classes

struct  is_base_of_ignore_reference
 Determines if X is a base of or same as Y (after stripping Y of references). More...
 
struct  is_map
 
struct  is_map< const std::map< TArgs... > >
 
struct  is_map< const std::unordered_map< TArgs... > >
 
struct  is_map< std::map< TArgs... > >
 
struct  is_map< std::unordered_map< TArgs... > >
 
struct  is_pod
 
struct  is_pod< BaseValue< X, Y > >
 
struct  is_pod< ClampedBaseValue< X, Y > >
 
struct  is_pod< const X >
 
struct  is_pod< ImmutableValue< X > >
 
struct  is_scalar
 
struct  is_scalar< BaseValue< X, Y > >
 
struct  is_scalar< ClampedBaseValue< X, Y > >
 
struct  is_scalar< const X >
 
struct  is_scalar< ImmutableValue< X > >
 
struct  is_type_expression
 Type-based SFINAE helper that evaluates a type expression to a type (if valid) or void (if invalid). More...
 

Typedefs

template<typename T , typename Enable = void>
using is_type_expression_t = typename is_type_expression< T, Enable >::type
 true if the expression is valid and evaluates to a type, false otherwise. More...
 

Variables

template<typename T >
constexpr bool is_map_v = is_map<T>::value
 true if T is a standard map type, false otherwise. More...
 
template<typename T >
constexpr bool is_scalar_v = is_scalar<T>::value
 true if T is a standard scalar type or a catapult scalar type, false otherwise. More...
 
template<typename T >
constexpr bool is_pod_v = is_pod<T>::value
 true if T is a standard pod type or a catapult scalar type and is not a pointer type, false otherwise. More...
 
template<typename X , typename Y >
constexpr bool is_base_of_ignore_reference_v = is_base_of_ignore_reference<X, Y>::value
 true if X is a base of or same as Y (after stripping Y of references), false otherwise. More...
 

Typedef Documentation

◆ is_type_expression_t

template<typename T , typename Enable = void>
using catapult::utils::traits::is_type_expression_t = typedef typename is_type_expression<T, Enable>::type

true if the expression is valid and evaluates to a type, false otherwise.

Variable Documentation

◆ is_base_of_ignore_reference_v

template<typename X , typename Y >
constexpr bool catapult::utils::traits::is_base_of_ignore_reference_v = is_base_of_ignore_reference<X, Y>::value
inlineconstexpr

true if X is a base of or same as Y (after stripping Y of references), false otherwise.

◆ is_map_v

template<typename T >
constexpr bool catapult::utils::traits::is_map_v = is_map<T>::value
inlineconstexpr

true if T is a standard map type, false otherwise.

◆ is_pod_v

template<typename T >
constexpr bool catapult::utils::traits::is_pod_v = is_pod<T>::value
inlineconstexpr

true if T is a standard pod type or a catapult scalar type and is not a pointer type, false otherwise.

◆ is_scalar_v

template<typename T >
constexpr bool catapult::utils::traits::is_scalar_v = is_scalar<T>::value
inlineconstexpr

true if T is a standard scalar type or a catapult scalar type, false otherwise.