std::remove_reference

From Cppreference

Jump to: navigation, search
Defined in header <type_traits>

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.

Contents

[edit] Member types

Name Definition
type the type referred by T or T if it is not a reference

[edit] Equivalent definition

[edit] Example

[edit] See also

is_reference (C++11)
checks if a type is either lvalue reference or rvalue reference
(class template)
add_lvalue_reference
add_rvalue_reference
(C++11)
(C++11)
adds lvalue or rvalue reference to the given types
(class template)