queue::value_type
Тип, который представляет тип объекта, хранящейся в виде элемента в очереди.
typedef typename Container::value_type value_type;
Заметки
Тип является синонимом value_type базового контейнера приспособленного очередью.
Пример
// queue_value_type.cpp
// compile with: /EHsc
#include <queue>
#include <iostream>
int main( )
{
using namespace std;
// Declares queues with default deque base container
queue<int>::value_type AnInt;
AnInt = 69;
cout << "The value_type is AnInt = " << AnInt << endl;
queue<int> q1;
q1.push(AnInt);
cout << "The element at the front of the queue is "
<< q1.front( ) << "." << endl;
}
Требования
Заголовок:<queue>
Пространство имен: std