![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Polyfill of std::type_identity added in C++20. More...
Public Types | |
| using | type = T |
an alias for T | |
Polyfill of std::type_identity added in C++20.
| T | The type to preserve |
Typically used to prevent parameters from being deduced in order to avoid ambiguities in type-deduction.
Can also be used as the identity metafunction in some template metaprogramming expressions.
For example:
| using arene::base::type_identity< T >::type = T |
an alias for T