◐ Shell
clean mode source ↗

std::remove_reference – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<type_traits>

template< class T > struct remove_reference;

(seit C++11)

Wenn der Typ T ist ein Referenz-Typ, bietet das Mitglied typedef type das ist die Art, auf die sich T ist. Ansonsten type ist T .

Original:

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.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Mitglied Typen

Name

Original:

Name

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Definition
type

der genannten Art durch T oder T wenn es nicht eine Referenz

Original:

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

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Mögliche Implementierung

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;};

Beispiel

Siehe auch

prüft, ob ein Typ ist entweder lvalue Verweis oder rvalue Verweis

Original:

checks if a type is either lvalue reference or rvalue reference

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(Klassen-Template) [edit]

fügt lvalue oder rvalue Verweis auf den angegebenen Typ

Original:

adds lvalue or rvalue reference to the given type

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(Klassen-Template) [edit]