VCCC
2024.05
VisualCamp Common C++ library
type_identity.hpp
Go to the documentation of this file.
1
//
2
// Created by yonggyulee on 2023/09/29.
3
//
4
5
#ifndef VCCC_TYPE_TRAITS_TYPE_IDENTITY_HPP
6
#define VCCC_TYPE_TRAITS_TYPE_IDENTITY_HPP
7
8
namespace
vccc
{
9
15
16
template
<
typename
T>
17
struct
type_identity
{
18
using
type
= T;
19
};
20
21
template
<
typename
T>
22
using
type_identity_t
=
typename
type_identity<T>::type
;
23
26
27
}
// namespace vccc
28
29
#endif
// VCCC_TYPE_TRAITS_TYPE_IDENTITY_HPP
vccc::type_identity_t
typename type_identity< T >::type type_identity_t
Definition:
type_identity.hpp:22
vccc
Definition:
directory.h:12
vccc::type_identity
Definition:
type_identity.hpp:17
vccc::type_identity::type
T type
Definition:
type_identity.hpp:18
include
vccc
__type_traits
type_identity.hpp
Generated by
1.9.1