A set built on an unsorted Vector, ensuring no item duplication. More...
#include <VectorSet.h>
Public Member Functions | |
auto | size () const |
Return size of the set. More... | |
Value * | begin () |
const Value * | begin () const |
Value * | end () |
const Value * | end () const |
template<typename ComparableToValue > | |
bool | contains (const ComparableToValue &value) |
Check if the given Value exists in the VectorSet. More... | |
bool | insert (const Value &value) |
Inserts a value in the VectorSet (if it doesn't already exists) More... | |
template<typename ComparableToValue > | |
bool | remove (const ComparableToValue &value) |
Removes a value from the VectorSet (if it exists) More... | |
Public Attributes | |
Container | items |
A set built on an unsorted Vector, ensuring no item duplication.
Value | The contained value |
Container | The underlying container used |
|
inline |
Check if the given Value exists in the VectorSet.
|
inline |
Inserts a value in the VectorSet (if it doesn't already exists)
|
inline |
Removes a value from the VectorSet (if it exists)
|
inline |
Return size of the set.