bool empty() const queue See below.
size_type size() const queue See below.
value_type& front() queue See below.
const value_type& front() const queue See below.
value_type& back() queue See below.
const value_type& back() const queue See below.
void push(const value_type&) queue See below.
void pop() [3] queue See below.
bool operator==(const queue&, const queue&) queue See below.
bool operator<(const queue&, const queue&) queue See below.
New members

These members are not defined in the Assignable and Default Constructible requirements, but are specific to queue.

Member Description
value_type The type of object stored in the queue. This is the same as T and Sequence::value_type.
size_type An unsigned integral type. This is the same as Sequence::size_type.
bool empty() const Returns true if the queue contains no elements, and false otherwise. Q.empty() is equivalent to Q.size() == 0.
size_type size() const Returns the number of elements contained in the queue.
value_type& front() Returns a mutable reference to the element at the front of the queue, that is, the element least recently inserted. Precondition: empty() is false.
const value_type& front() const Returns a const reference to the element at the front of the queue, that is, the element least recently inserted. Precondition: empty() is false.
value_type& back() Returns a mutable reference to the element at the back of the queue, that is, the element most recently inserted. Precondition: empty() is false.
Добавить отзыв
ВСЕ ОТЗЫВЫ О КНИГЕ В ИЗБРАННОЕ

0

Вы можете отметить интересные вам фрагменты текста, которые будут доступны по уникальной ссылке в адресной строке браузера.

Отметить Добавить цитату