◐ Shell
clean mode source ↗

std::pair – cppreference.com

Aus cppreference.com

<tbody> </tbody>

definiert in Header

<utility>

template< class T1, class T2 > struct pair;

std::pair ist eine Struktur Vorlage, die eine Art, zwei heterogenen Objekten als eine einzige Einheit zu verstauen .

Original:

std::pair is a struct template that provides a way to store two heterogeneous objects as a single unit.

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

Mitglied Typen

Mitglied Typ

Original:

Member type

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

Definition
first_type T1
second_type T2

Mitglied widerspricht

Member name

Original:

Member name

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

Type
first T1
second T2

Member-Funktionen

baut neues Paar

Original:

constructs new pair

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


(öffentliche Elementfunktion)

ordnet die Inhalte

Original:

assigns the contents

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


(öffentliche Elementfunktion)

(C++11)

tauscht die Inhalte

Original:

swaps the contents

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


(öffentliche Elementfunktion)

Non-Member-Funktionen

schafft eine pair Objekt des Typs, durch das Argument definiert

Original:

creates a pair object of type, defined by the argument types

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


(Funktions-Template) [edit]

vergleicht die Werte in dem Paar lexikographisch

Original:

lexicographically compares the values in the pair

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


(Funktions-Template) [edit]

spezialisiert die std::swap Algorithmus

Original:

specializes the std::swap algorithm

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


(Funktions-Template) [edit]

greift ein Element eines pair

Original:

accesses an element of a pair

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


(Funktions-Template) [edit]

Helper-Klassen

erhält die Größe eines pair

Original:

obtains the size of a pair

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


(class Template-Spezialisierung) [edit]

ermittelt die Art der Elemente der pair

Original:

obtains the type of the elements of pair

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


(class Template-Spezialisierung) [edit]