프로그래밍(Programming)/c++, 11, 14 , 17, 20
std::remove_reference
3DMP
2019. 12. 31. 01:47
Defined in header <type_traits> |
|
template< class T > |
(since C++11) |
If the type T is a reference type, provides the member typedef type which is the type referred to by T. Otherwise type is T.
Member types
Name | Definition |
type | the type referred by T or T if it is not a reference |
Helper types
template< class T > |
(since C++14) |
Possible implementation
Example
true
false
false
true
true
true
ref : https://en.cppreference.com/w/cpp/types/remove_reference
반응형