ra_set.hpp
A Random Access Set template.
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2017-2019 Michigan State University MIT Software license; see doc/LICENSE.md
Note
Status: ALPHA
Defines
-
INCLUDE_EMP_DATASTRUCTS_RA_SET_HPP_GUARD
-
template<typename T>
class ra_set - #include <ra_set.hpp>
This class uses a combination of a table (std::unordered_map) and vector to lookup insert, lookup, and delete values in constant time, while still being able to step through all values (albeit in an arbitrary order).
Note
The arbitrary order of values may change if any values are deleted.