The identity
Struct Template Reference
Struct template for compile-time type identity. More...
Declaration
Included Headers
Public Member Typedefs Index
template <class T, class...> | |
using | type = T |
Alias for the preserved type. More... | |
Description
Struct template for compile-time type identity.
- Template Parameters
-
T The type to be preserved.
...Unused Additional template parameters, ignored.
The identity struct template provides a mechanism for preserving a type T during template metaprogramming. It is commonly used to delay type evaluation or to forward types in complex template constructs within the µTest++ framework.
This utility is particularly useful in scenarios where type deduction or SFINAE is required, as it allows the type to be carried through template specialisations without modification.
Definition at line 141 of file type-traits.h.
Public Member Typedefs
type
|
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.