The identity
Struct Template Reference
Struct template for compile-time type identity. More...
Declaration
template <class T, class...>
struct micro_os_plus::micro_test_plus::type_traits::identity<T, class...>
Included Headers
#include <micro-os-plus/micro-test-plus.h>
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
|
Alias for the preserved type.
Definition at line 146 of file type-traits.h.
The documentation for this struct was generated from the following file:
Generated via docusaurus-plugin-doxygen by Doxygen 1.14.0.