|
symbolic
|
#include <unique_vector.h>
Public Member Functions | |
| UniqueVector (std::initializer_list< T > l) | |
| template<typename T_query > | |
| bool | contains (const T_query &val) const |
| template<typename T_query > | |
| bool | insert (const T_query &val) |
| bool | insert (T &&val) |
| template<class... Args> | |
| bool | emplace (Args &&... args) |
| template<typename T_query > | |
| bool | erase (const T_query &val) |
Set implemented as a sorted vector of unique elements.
| bool symbolic::UniqueVector< T >::contains | ( | const T_query & | val | ) | const |
Returns whether the vector contains the given value.
|
inline |
Emplaces a value into the vector and returns whether or not the vector has changed.
| bool symbolic::UniqueVector< T >::erase | ( | const T_query & | val | ) |
Removes a value from the vector and returns whether or not the vector has changed.
| bool symbolic::UniqueVector< T >::insert | ( | const T_query & | val | ) |
Inserts a value into the vector and returns whether or not the vector has changed.
1.8.17