Uwaga
Dostęp do tej strony wymaga autoryzacji. Może spróbować zalogować się lub zmienić katalogi.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Typ, który reprezentuje typ obiektu przechowywane jako element priority_queue.
typedef typename Container::value_type value_type;
Uwagi
Typ jest synonimem value_type z podstawowym kontenerem dostosowany przez priority_queue.
Przykład
// pqueue_value_type.cpp
// compile with: /EHsc
#include <queue>
#include <iostream>
int main( )
{
using namespace std;
// Declares priority_queues with default deque base container
priority_queue<int>::value_type AnInt;
AnInt = 69;
cout << "The value_type is AnInt = " << AnInt << endl;
priority_queue<int> q1;
q1.push( AnInt );
cout << "The element at the top of the priority_queue is "
<< q1.top( ) << "." << endl;
}
Wymagania
Nagłówek:<kolejki>
Przestrzeń nazw: std