Template Class UniqueQueue
Defined in File UniqueQueue.h
Class Documentation
-
template<std::equality_comparable T, Duplicate D = Duplicate::IGNORE_NEW>
class UniqueQueue a QUEUE with no duplicates; the equality of T must be an equivalence, so an item unequal to itself (e.g., a NaN) cannot be enqueued: the postcondition of enqueue() refuses it
Public Functions
-
bool empty(void) const
-
void enqueue(const T &v)
puts v at the back, unless the policy keeps an old copy of it
- Post:
v is in the queue, at the back with FORGET_OLD
-
std::size_t size(void) const
the number of items
-
inline const_iterator begin(void) const
-
inline const_iterator end(void) const
-
inline const_iterator cbegin(void) const
-
inline const_iterator cend(void) const
-
bool empty(void) const