cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::traits::type_identity< T > Struct Template Reference

类型标识特征/Type identity trait More...

#include <type_traits.hpp>

Public Types

using type = T
 

Detailed Description

template<typename T>
struct toolbox::traits::type_identity< T >

类型标识特征/Type identity trait

Template Parameters
T要标识的类型/Type to identify
// 保持类型不变/Keep type unchanged
using type1 = type_identity<int>::type; // type1 is int
using type2 = type_identity<std::string>::type; // type2 is std::string
T type
Definition type_traits.hpp:124

Member Typedef Documentation

◆ type

template<typename T >
using toolbox::traits::type_identity< T >::type = T

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