43 template <
typename K_TYPE,
typename ALLOC = allocator<K_TYPE>>
54 explicit set(ALLOC alloc = ALLOC{});
64 virtual bool add(
const K_TYPE& e) = 0;
72 virtual bool remove(
const K_TYPE& e) = 0;
84template<
typename K_TYPE,
typename ALLOC>
86 :
container<K_TYPE, ALLOC>(std::move(alloc)) {}
88template<
typename K_TYPE,
typename ALLOC>
Memory allocation interface and implementations.
container(ALLOC alloc=ALLOC{})
Constructs a container with specified allocator.
Definition container.h:129
~set() override
Destructor implementation.
virtual bool add(const K_TYPE &e)=0
Adds a new element to the set.
virtual bool remove(const K_TYPE &e)=0
Removes an element from the set.
set(ALLOC alloc=ALLOC{})
Constructor implementation.
Definition set.h:85
Abstract base class for container types.
Main namespace for the project Original.
Definition algorithms.h:21