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
반응형
'프로그래밍(Programming) > c++, 11, 14 , 17, 20' 카테고리의 다른 글
std::map::emplace_hint (0) | 2021.03.21 |
---|---|
C++ 캐스팅 Static, Dynamic cast (0) | 2020.04.27 |
[C++11] emplace 함수에 생긴 변화 (0) | 2018.05.23 |
VS2017 C++ 17 활성화 옵션 (1) | 2018.05.14 |
Rvalue References: C++0x Features in VC10, Part 2 (0) | 2018.04.29 |