Namensräume
Varianten

std::tuple::operator=

Aus cppreference.com
< cpp‎ | utility‎ | tuple

 
 
 
std::tuple
Member-Funktionen
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
tuple::tuple
tuple::operator=
tuple::swap
Non-Member-Funktionen
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
make_tuple
tie
forward_as_tuple
None
operator=
operator!=
operator<
operator<=
operator>
operator>=
std::swap
get
Helper-Klassen
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
tuple_size
tuple_element
uses_allocator
ignore
 
tuple& operator=(const tuple& other );
(1) (seit C++11)
tuple& operator=( tuple&& other );
(2) (seit C++11)
template<class... UTypes>
tuple& operator=(const tuple<UTypes...>& other );
(3) (seit C++11)
template<class... UTypes>
tuple& operator=( tuple<UTypes...>&& other );
(4) (seit C++11)
template<class U1, class U2 >
tuple& operator=(const pair<U1,U2>& p );
(5) (seit C++11)
template<class U1, class U2 >
tuple& operator=( pair<U1,U2>&& p );
(6) (seit C++11)
Ersetzt den Inhalt des Tupel mit dem Inhalt einer anderen Tupel oder ein Paar .
Original:
Replaces the contents of the tuple with the contents of another tuple or a pair.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Kopieren Zuweisungsoperator. Ersetzt jedes Element mit einer Kopie des entsprechenden Elements des other .
Original:
Copy assignment operator. Replaces each element with a copy of the corresponding element of other.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Bewegen Zuweisungsoperator. Ersetzt jedes Element mit dem entsprechenden Element other mit Semantik bewegen .
Original:
Move assignment operator. Replaces each element with the corresponding element of other using move semantics.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Für alle i weist std::get<i>(other) um std::get<i>(*this) .
Original:
For all i, assigns std::get<i>(other) to std::get<i>(*this).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
Für alle i weist std::forward<Ui>(std::get<i>(other)) um std::get<i>(*this) .
Original:
For all i, assigns std::forward<Ui>(std::get<i>(other)) to std::get<i>(*this).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5)
Weist p.first auf das erste Element des *this und p.second mit dem zweiten Element des *this .
Original:
Assigns p.first to the first element of *this and p.second to the second element of *this.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
Weist std::forward<U1>(p.first) auf das erste Element des *this und std::forward<U2>(p.second) mit dem zweiten Element des *this .
Original:
Assigns std::forward<U1>(p.first) to the first element of *this and std::forward<U2>(p.second) to the second element of *this.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inhaltsverzeichnis

[Bearbeiten]Parameter

other -
Tupel, um die Inhalte dieser Tupels ersetzen
Original:
tuple to replace the contents of this tuple
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
p -
Paar, um die Inhalte dieser 2-Tupel ersetzen
Original:
pair to replace the contents of this 2-tuple
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten]Rückgabewert

*this

[Bearbeiten]Ausnahmen

1)
(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
noexcept specification:  (seit C++11)
noexcept(noexcept(

    is_nothrow_move_assignable<T0>::value&&
    is_nothrow_move_assignable<T1>::value&&
    is_nothrow_move_assignable<T2>::value&&
    ...

)
3-5)
(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
noexcept specification:  
noexcept
  (seit C++11)

[Bearbeiten]Beispiel

[Bearbeiten]Siehe auch

close