Template Class DictionarySet

Class Documentation

template<class D>
class DictionarySet

a set on a DICTIONARY D with values bool and a forEach( f( k , v ) )

Public Types

using Item = typename D::Key

the type of the items

Public Functions

template<class ...A>
explicit DictionarySet(A&&... a)

the empty set on the dictionary D( a… )

std::size_t size(void) const
bool empty(void) const
bool contains(const Item &x) const
void insert(const Item &x)
Post:

x is in the set

void remove(const Item &x)
Post:

x is not in the set

template<class F>
void forEach(F &&f) const

f( x ) on the items, in the order of the dictionary

const D &dictionary(void) const

the dictionary

inline auto begin(void) const
inline auto end(void) const