AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::type_identity< T > Struct Template Reference

Maps a type to itself in a non-deduced context. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/core/Types.hpp>

Public Types

using type = T
 

Detailed Description

template<typename T>
struct axom::type_identity< T >

Maps a type to itself in a non-deduced context.

This is an Axom-local equivalent of C++20's std::type_identity for C++17. Its primary use is to suppress template argument deduction for a function parameter. A parameter declared as type_identity_t<T> does not participate in deducing T, so T is taken from the explicit template argument or from another parameter, and the argument here is implicitly converted.

Member Typedef Documentation

◆ type

template<typename T >
using axom::type_identity< T >::type = T

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