WPILibC++ 2023.4.3
|
This class is the same as std::priority_queue with two changes: More...
#include <wpi/priority_queue.h>
Public Types | |
using | value_type = typename Sequence::value_type |
using | reference = typename Sequence::reference |
using | const_reference = typename Sequence::const_reference |
using | size_type = typename Sequence::size_type |
using | container_type = Sequence |
using | value_compare = Compare |
Public Member Functions | |
template<typename Seq = Sequence, typename Requires = typename std::enable_if_t< std::is_default_constructible<Compare>{} && std::is_default_constructible<Seq>{}>> | |
priority_queue () | |
priority_queue (const Compare &comp, const Sequence &c) | |
priority_queue (const Compare &comp, Sequence &&c=Sequence{}) | |
template<typename InputIterator > | |
priority_queue (InputIterator first, InputIterator last, const Compare &comp, const Sequence &c) | |
template<typename InputIterator > | |
priority_queue (InputIterator first, InputIterator last, const Compare &comp=Compare{}, Sequence &&c=Sequence{}) | |
bool | empty () const |
size_type | size () const |
const_reference | top () const |
void | push (const value_type &value) |
void | push (value_type &&value) |
template<typename... Args> | |
void | emplace (Args &&... args) |
T | pop () |
bool | remove (const T &value) |
Protected Attributes | |
Sequence | c |
Compare | comp |
This class is the same as std::priority_queue with two changes:
using wpi::priority_queue< T, Sequence, Compare >::const_reference = typename Sequence::const_reference |
using wpi::priority_queue< T, Sequence, Compare >::container_type = Sequence |
using wpi::priority_queue< T, Sequence, Compare >::reference = typename Sequence::reference |
using wpi::priority_queue< T, Sequence, Compare >::size_type = typename Sequence::size_type |
using wpi::priority_queue< T, Sequence, Compare >::value_compare = Compare |
using wpi::priority_queue< T, Sequence, Compare >::value_type = typename Sequence::value_type |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |