std::queue
De cppreference.com
[] |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Definido no cabealho <queue>
|
||
template< class T, class Container = std::deque<T> > class queue; |
||
A classe
std::queue um adaptador de recipiente que d ao programador a funcionalidade de uma fila - especificamente, um FIFO (first-in, first-out) estrutura de dados. Original:
The
std::queue class is a container adapter that gives the programmer the functionality of a queue - specifically, a FIFO (first-in, first-out) data structure. 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.
Tipos de membro
Tipo de membro
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 |
container_type
|
Container
|
value_type
|
Container::value_type
|
size_type
|
Container::size_type
|
reference
|
Container::reference
|
const_reference
|
Container::const_reference
|
Funes de membro
constri o queue Original: constructs the queue The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funo pblica membro) | |
destri o queue Original: destructs the queue The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funo pblica membro) | |
atribui valores ao adaptador de recipiente Original: assigns values to the container adaptor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funo pblica membro) | |
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. | |
acesso ao primeiro elemento Original: access the first element The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funo pblica membro) | |
| access the last element (funo pblica membro) | |
Original: Capacity The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
verifica se o recipiente subjacente est vazio Original: checks whether the underlying container is empty The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funo pblica membro) | |
devolve o nmero de elementos Original: returns the number of elements The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funo pblica membro) | |
Original: Modifiers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| inserts element at the end (funo pblica membro) | |
(C++11) |
constructs element in-place at the end (funo pblica membro) |
remove o primeiro elemento Original: removes the first element The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funo pblica membro) | |
Trocar o contedo 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. (funo pblica membro) | |
Original: Member objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Container c |
o recipiente subjacente Original: the underlying container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (objeto protegido membro) |
No-membros funes
lexicographically compara os valores na queue Original: lexicographically compares the values in the queue The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de funo) | |
o algoritmo especializado std::swap 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. (modelo de funo) | |
Classes auxiliares
especializa o trao tipo std::uses_allocator Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de funo) | |