Skip to main content

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

Public Member Typedefs Index

template <class T, class...>
usingtype = 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

template <class T, class...>
using micro_os_plus::micro_test_plus::type_traits::identity< T,... >::type = T

Alias for the preserved type.

Definition at line 146 of file type-traits.h.

146 using type = T;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus by Doxygen 1.14.0.