86 class LimitedPriorityQueue
90 using container_type = std::array<T, N>;
91 using compare = CompareT;
92 using iterator =
typename container_type::iterator;
93 using const_iterator =
typename container_type::const_iterator;
94 using Self = LimitedPriorityQueue<T, N, CompareT>;
98 PONCA_MULTIARCH
inline LimitedPriorityQueue();
99 PONCA_MULTIARCH
inline LimitedPriorityQueue(
const Self& other);
100 PONCA_MULTIARCH
inline explicit LimitedPriorityQueue(
int capacity);
101 template <
class InputIt>
102 PONCA_MULTIARCH LimitedPriorityQueue(
int capacity, InputIt first, InputIt last);
104 PONCA_MULTIARCH
inline ~LimitedPriorityQueue() =
default;
106 PONCA_MULTIARCH
inline LimitedPriorityQueue& operator=(
const Self& other) =
default;
110 PONCA_MULTIARCH [[nodiscard]]
inline iterator begin();
111 PONCA_MULTIARCH [[nodiscard]]
inline const_iterator begin()
const;
112 PONCA_MULTIARCH [[nodiscard]]
inline const_iterator cbegin()
const;
114 PONCA_MULTIARCH [[nodiscard]]
inline iterator end();
115 PONCA_MULTIARCH [[nodiscard]]
inline const_iterator end()
const;
116 PONCA_MULTIARCH [[nodiscard]]
inline const_iterator cend()
const;
120 PONCA_MULTIARCH [[nodiscard]]
inline const T& top()
const;
121 PONCA_MULTIARCH [[nodiscard]]
inline const T& bottom()
const;
123 PONCA_MULTIARCH [[nodiscard]]
inline T& top();
124 PONCA_MULTIARCH [[nodiscard]]
inline T& bottom();
128 PONCA_MULTIARCH [[nodiscard]]
inline bool empty()
const;
129 PONCA_MULTIARCH [[nodiscard]]
inline bool full()
const;
130 PONCA_MULTIARCH [[nodiscard]]
inline size_t size()
const;
131 PONCA_MULTIARCH [[nodiscard]]
inline size_t capacity()
const;
135 PONCA_MULTIARCH
inline bool pushImpl(
const T& _value, T** _addr);
138 PONCA_MULTIARCH
bool push(T&& _value);
139 PONCA_MULTIARCH
bool push(
const T& _value);
140 PONCA_MULTIARCH
void pop();
141 PONCA_MULTIARCH
void reserve(
int _capacity);
142 PONCA_MULTIARCH
void clear();
146 PONCA_MULTIARCH
const container_type& container()
const;
149 container_type m_data{};
172 : m_data(other.m_data), m_comp(other.m_comp), m_size(other.m_size), m_capacity(other.m_capacity)