40 for (
auto it = begin(); it != end(); ++it) {
49 for (
auto it = begin(); it != end(); ++it) {
57 bool insert(
const Key& key) {
58 if (data.size() < N) {
68 bool erase(
const Key& key) {
85 bool next(
const Key& key,
Key* next_key,
bool allow_rollover =
false)
const {
92 }
else if (allow_rollover && !empty()) {
100 bool prev(
const Key& key,
Key* prev_key,
bool allow_rollover =
false)
const {
107 }
else if (allow_rollover && !empty()) {
108 *prev_key = data[data.size() - 1];
116 constexpr size_t size()
const {
120 constexpr bool empty()
const {
125 constexpr size_t capacity()
const {
134 bool has(
const Key& key)
const {
135 return find(key) != end();
139 const Key& front()
const {
144 const Key& back()
const {