 |
Cytopia
0.3
A city building simulation game
|
Go to the documentation of this file. 1 #ifndef PRIORITY_QUEUE_HXX_
2 #define PRIORITY_QUEUE_HXX_
10 template <
typename T,
typename Comparator = std::less<T>>
class PriorityQueue
22 using pointer =
typename Container::pointer;
31 bool empty() const noexcept;
71 void clear(
void) noexcept;
77 #include "PriorityQueue.inl.hxx"
79 #endif // PRIORITY_QUEUE_HXX_
typename Container::const_pointer const_pointer
typename Container::pointer pointer
typename Container::value_type value_type
typename Container::iterator iterator
typename Container::difference_type different_type
typename Container::reference reference
typename Container::const_iterator const_iterator
bool empty() const noexcept
Check whether queue is empty.
std::greater< GameClock::ClockTask > value_compare
void clear(void) noexcept
Remove all elements from queue.
Priority queue with erase element functionality.
typename Container::size_type size_type
void pop()
Remove first element from the queue (from top).
size_type erase_if(Predicate &&predicate)
Remove all elements from queue for which predicate returns true.
typename Container::allocator_type allocator_type
std::vector< GameClock::ClockTask > Container
void push(value_type &&element)
Add new element to the queue.
typename Container::const_reference const_reference
reference top()
Get top element from the queue.