38#include <gtest/gtest.h>
43using namespace testing;
72 for (
int i = 0; i < 10; ++i)
76 auto &first = q.
append(100);
110 explicit Payload(std::string d) : data(std::move(d)) {}
123 if (p.data ==
"delta" || p.data ==
"beta")
bool traverse(Operation &operation)
Conditional traversing of the random queue.
bool is_empty() const
Return true if the queue is empty.
T get()
Extract randomly an item.
T & append(const T &item)
Insert randomly an item by copy.
Main namespace for Aleph-w library functions.
DynList< T > maps(const C &c, Op op)
Classic map operation.
Itor::difference_type count(const Itor &beg, const Itor &end, const T &value)
Count elements equal to a value.
Random access queue (bag) with O(1) random pop.