std::tuple::operator=

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

 
 
Utilità libreria
Tipo di supporto (basic types, RTTI, type traits)
Gestione della memoria dinamica
La gestione degli errori
Programma di utilità
Funzioni variadic
Data e ora
Funzione oggetti
initializer_list(C++11)
bitset
hash(C++11)
Gli operatori relazionali
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
Coppie e tuple
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pair
tuple(C++11)
piecewise_construct_t(C++11)
piecewise_construct(C++11)
Swap, in avanti e spostare
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap
forward(C++11)
move(C++11)
move_if_noexcept(C++11)
declval(C++11)
 
std::tuple
Membri funzioni
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 membri funzioni
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 classi
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) (dal C++11)
tuple& operator=( tuple&& other );
(2) (dal C++11)
template<class... UTypes>
tuple& operator=(const tuple<UTypes...>& other );
(3) (dal C++11)
template<class... UTypes>
tuple& operator=( tuple<UTypes...>&& other );
(4) (dal C++11)
template<class U1, class U2 >
tuple& operator=(const pair<U1,U2>& p );
(5) (dal C++11)
template<class U1, class U2 >
tuple& operator=( pair<U1,U2>&& p );
(6) (dal C++11)
Sostituisce il contenuto della tupla con il contenuto di un'altra tupla o una coppia.
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)
Copia operatore di assegnazione. Sostituisce ogni elemento con una copia del corrispondente elemento di 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)
Spostare operatore di assegnazione. Sostituisce ogni elemento con l'elemento corrispondente di other usando la semantica si muovono.
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)
Per tutti i, assegna std::get<i>(other) a 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)
Per tutti i, assegna std::forward<Ui>(std::get<i>(other)) a 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)
p.first assegna al primo elemento di *thisp.second e al secondo elemento di *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)
std::forward<U1>(p.first) assegna al primo elemento di *thisstd::forward<U2>(p.second) e al secondo elemento di *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.

Indice

[modifica]Parametri

other -
tupla per sostituire il contenuto di questa tupla
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 -
coppia per sostituire il contenuto di questa struttura a 2-tupla
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.

[modifica]Valore di ritorno

*this

[modifica]Eccezioni

1)
(Nessuno)
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:  (dal C++11)
noexcept(noexcept(

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

)
3-5)
(Nessuno)
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
  (dal C++11)

[modifica]Esempio

[modifica]Vedi anche

close