From Cppreference
|
|
|
|
|
template< class T > struct remove_reference;
|
|
(C++11 feature)
|
|
|
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.
[edit] Member types
|
Name
|
Definition
|
|
type
|
the type referred by T or T if it is not a reference
|
[edit] Equivalent definition
template< class T > struct remove_reference {typedef T type;};
template< class T > struct remove_reference<T&> {typedef T type;};
template< class T > struct remove_reference<T&&> {typedef T type;};
|
[edit] Example
[edit] See also
|
|
checks if a type is either lvalue reference or rvalue reference (class template)
|
|
|
adds lvalue or rvalue reference to the given types (class template)
|