Type Traits Library
The Type Traits library contains traits for various types/behavior.
Defined in module
<cmoon.type_traits>
Copy traits
copy_const |
Copies the const type attribute
|
copy_volatile |
Copies the volatile type attribute
|
copy_cv |
Copies the const and volatile type attributes
|
copy_reference |
Copies the reference type attribute
|
copy_extent |
Copies the array extent
|
copy_all_extents |
Recursively copies the array extents
|
remove_all_pointers |
Removes all pointers from type
|
copy_pointer |
Copies the pointer type attribute
|
copy_all_pointers |
Recursively copies the pointer type attribute
|
copy_cvref |
Copies the const , volatile , and reference type attributes
|
Miscellaneous queries
is_any_of |
Checks if the given type is equal to any of the other given types
|
is_all_of |
Checks if the given type is equal to all of the other given types
|
is_unique |
Checks if a sequence of types is unique
|
is_character |
Checks if a type represents a character
|
is_string_literal |
Checks if a type represents a string literal
|
Type relationships
is_specialization |
Checks if the given type is equal to any of the other given types
|
Type transformations
detected |
A collection of alias templates for detecting behavior/functionality of types
|