std::tuple_element<div class="t-tr-text"><std::tuple><div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig"><std::tuple></div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>

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
 
Elemento definito nell'header <tuple>
template<std::size_t I, class T >
class tuple_element;/* undefined */
(1) (dal C++11)
template<std::size_t I, class... Types>
class tuple_element< I, tuple<Types...>>;
(2) (dal C++11)
template<std::size_t I, class T >

class tuple_element< I, const T >{
  typedeftypename
      std::add_const<typename std::tuple_element<I, T>::type>::type type;

};
(3) (dal C++11)
template<std::size_t I, class T >

class tuple_element< I, volatile T >{
  typedeftypename
      std::add_volatile<typename std::tuple_element<I, T>::type>::type type;

};
(4) (dal C++11)
template< size_t I, class T >

class tuple_element< I, constvolatile T >{
  typedeftypename
      std::add_cv<typename std::tuple_element<I, T>::type>::type type;

};
(5) (dal C++11)
Fornisce di compilazione tipo di accesso indicizzato ai tipi di elementi della tupla.
Original:
Provides compile-type indexed access to the types of the elements of the tuple.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica]Membri tipi

Membro tipo
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
type
il tipo di elemento Ith della tupla, dove è in I[0, sizeof...(Types))
Original:
the type of Ith element of the tuple, where I is in [0, sizeof...(Types))
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica]Possibile implementazione

template<std::size_t I, class T >struct tuple_element;   // recursive casetemplate<std::size_t I, class Head, class... Tail>struct tuple_element<I, std::tuple<Head, Tail...>>: std::tuple_element<I-1, std::tuple<Tail...>>{};   // base casetemplate<class Head, class... Tail>struct tuple_element<0, std::tuple<Head, Tail...>>{typedef Head type;};

[modifica]Esempio

[modifica]Vedi anche

ottiene il tipo di elementi di array
Original:
obtains the type of the elements of array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe modello di specializzazione)[modifica]
ottiene il tipo di elementi di 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.

(classe modello di specializzazione)[modifica]
close