Пространства имён
Варианты
Действия

std::queue

Материал из cppreference.com

Заголовочный файл <queue>
template<

    class T,
    class Container = std::deque<T>

> class queue;
std::queue класс является контейнером адаптер, который дает программисту функциональность очереди - в частности, FIFO (первым вошел, первым вышел) структуры данных.
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.

Содержание

[править] Член типов

Член типа
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 [edit]
value_type Container::value_type [edit]
size_type Container::size_type [edit]
reference Container::reference [edit]
const_reference Container::const_reference [edit]

[править] Член функций

строит 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.

(public функция-член) [edit]
destructs the queue
(public функция-член) [edit]
Шаблон:tlist frontr
(public функция-член) [edit]
Элемент доступа
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.
предоставляет доступ к первому элементу
(public функция-член) [edit]
предоставляет доступ к последнему элементу
(public функция-член) [edit]
Потенциала
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
проверяет отсутствие элементов в контейенре, используемом для реализации
(public функция-член) [edit]
возвращает количество элементов
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.

(public функция-член) [edit]
Модификаторы
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
вставляет элемент в конец
(public функция-член) [edit]
(C++11)
конструирует конечный элемент "на месте"
(public функция-член) [edit]
удаляет первый элемент
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.

(public функция-член) [edit]
обмениевает содержимое
(public функция-член) [edit]

Член объектов
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
базового контейнера
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.

(protected объект-член) [edit]

[править] Не являющиеся членами функций

лексикографически сравнивает значения в 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.

(шаблон функции) [edit]
Специализируется 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.

(шаблон функции) [edit]

[править] Вспомогательные классы

Специализируется черта 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.

(шаблон функции) [edit]