std::list
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
| Elemento definito nell'header <list>
|
||
template< class T, class Allocator = std::allocator<T> > class list; |
||
List è un contenitore che supporta l'inserimento veloce e la rimozione di elementi da qualsiasi parte dal contenitore. rapido accesso casuale non è supportato. È implementato come double-linked elenco. Rispetto a std::forward_list questo contenitore offre funzionalità bidirezionale iterazione, ma meno efficiente dello spazio.
Original:
List is a container which supports fast insertion and removal of elements from anywhere from the container. Fast random access is not supported. It is implemented as double-linked list. Compared to std::forward_list this container provides bidirectional iteration capability while being less space efficient.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
std::list soddisfi i requisiti di Container, AllocatorAwareContainer, SequenceContainer e ReversibleContainer.Original:
std::list meets the requirements of Container, AllocatorAwareContainer, SequenceContainer and ReversibleContainer.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
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 |
value_type
|
T
|
allocator_type
|
Allocator
|
size_type
|
Tipo intero senza segno (generalmente size_t)
|
difference_type
|
Tipo intero con segno (generalmente ptrdiff_t)
|
reference
|
Allocator::reference (fino al c++11)value_type& (dal C++11)
|
const_reference
|
Allocator::const_reference (fino al c++11)const value_type& (dal C++11)
|
pointer
|
Allocator::pointer (fino al c++11)std::allocator_traits<Allocator>::pointer (dal C++11)
|
const_pointer
|
Allocator::const_pointer (fino al c++11)std::allocator_traits<Allocator>::const_pointer (dal C++11)
|
iterator
|
BidirectionalIterator
|
const_iterator
|
Iteratore bidirezionale su costanti |
reverse_iterator
|
std::reverse_iterator<iterator>
|
const_reverse_iterator
|
std::reverse_iterator<const_iterator>
|
Membri funzioni
costruisce il list (metodo pubblico) | |
distrugge il list (metodo pubblico) | |
assegna valori al contenitore Original: assigns values to the container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
assegna valori al contenitore Original: assigns values to the container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
restituisce l'allocatore associato Original: returns the associated allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
Original: Element access The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
accedere al primo elemento Original: access the first element The text has been machine-translated via | |