Traits used in Hedgehog.
More...
|
| template<typename T > |
| constexpr auto | type_name () |
| | Create a std::string_view containing a full type name of T. More...
|
| |
◆ type_name()
template<typename T >
| constexpr auto hh::traits::type_name |
( |
| ) |
|
Create a std::string_view containing a full type name of T.
- Template Parameters
-
| T | Type to get the name from |
- Returns
- std::string_view containing a full type name of T
Definition at line 127 of file traits.h.
◆ Contains_v
template<class T , class... Ts>
| constexpr bool hh::traits::Contains_v = Contains<T, std::tuple<Ts...>>::value |
|
inline |
Direct Contains value accessor.
- Template Parameters
-
| T | Type to test |
| Ts | Parameter pack |
Definition at line 91 of file traits.h.
◆ is_included_v
template<class T1 , class T2 >
Value accessor to test if the types of tuple T1 are in types of tuple T2.
- Template Parameters
-
| T1 | Tuple of types that should be in type T2 |
| T2 | Tuple of types that should contain all type of T1 |
Definition at line 121 of file traits.h.
◆ is_managed_memory_v
template<class PossibleManagedMemory >
◆ isUnique
template<typename... >
| constexpr auto hh::traits::isUnique = std::true_type{} |
|
inline |
Check if all parameters in a parameters pack are unique, default case.
- Template Parameters
-
| ... | Default list of templates |
Definition at line 47 of file traits.h.
◆ isUnique< T, Rest... >
template<typename T , typename... Rest>
Initial value:=
std::bool_constant<(!std::is_same_v<T, Rest> && ...) &&
isUnique<Rest...>>{}
constexpr auto isUnique
Check if all parameters in a parameters pack are unique, default case.
Check if all parameters in a parameters pack are unique, looping through templates.
- Template Parameters
-
| T | Current type to test |
| Rest | Following type |
Definition at line 53 of file traits.h.