Template Class ListSet
Defined in File ListSet.h
Class Documentation
-
template<std::equality_comparable T>
class ListSet a set as an unsorted list
Public Types
-
using size_type = std::size_t
-
using difference_type = std::ptrdiff_t
-
using iterator = const_iterator
Public Functions
-
ListSet(void) = default
-
std::size_t size(void) const
-
bool empty(void) const
-
void insertNew(const T &x)
inserts x, which must not be there, at the head, O( 1 ) time
- Pre:
x is not in the set (an audit, O( n ))
-
template<class F>
void forEach(F &&f) const f( x ) on the items, from the last inserted, O( n ) time
-
inline const_iterator begin(void) const
-
inline const_iterator end(void) const
-
inline const_iterator cbegin(void) const
-
inline const_iterator cend(void) const
-
using size_type = std::size_t