std::remove_reference

From cppreference.com
Jump to: navigation, search
Defined in header <type_traits>
template< class T >
struct remove_reference;
(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.

Contents

[edit] Member types

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

[edit] Possible implementation

[edit] Example

[edit] See also

checks if a type is either lvalue reference or rvalue reference
(class template) [edit]
adds lvalue or rvalue reference to the given types
(class template) [edit]

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox