symbolic
Public Member Functions | List of all members
symbolic::UniqueVector< T > Class Template Reference

#include <unique_vector.h>

Inheritance diagram for symbolic::UniqueVector< T >:

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)
 

Detailed Description

template<typename T>
class symbolic::UniqueVector< T >

Set implemented as a sorted vector of unique elements.

Member Function Documentation

◆ contains()

template<typename T >
template<typename T_query >
bool symbolic::UniqueVector< T >::contains ( const T_query &  val) const

Returns whether the vector contains the given value.

◆ emplace()

template<typename T >
template<class... Args>
bool symbolic::UniqueVector< T >::emplace ( Args &&...  args)
inline

Emplaces a value into the vector and returns whether or not the vector has changed.

◆ erase()

template<typename T >
template<typename T_query >
bool symbolic::UniqueVector< T >::erase ( const T_query &  val)

Removes a value from the vector and returns whether or not the vector has changed.

◆ insert()

template<typename T >
template<typename T_query >
bool symbolic::UniqueVector< T >::insert ( const T_query &  val)

Inserts a value into the vector and returns whether or not the vector has changed.


The documentation for this class was generated from the following file: