![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
A non-default key set based on a vector. This is very efficient for insertions, reads, and slicing, but does not support deletions.
Definition at line 38 of file attr_storage.h.
#include <attr_storage.h>
Public Types | |
| using | Key = AttrKey<n, NoSymmetry> |
Public Member Functions | |
| DenseKeySet ()=default | |
| size_t | size () const |
| template<typename F> | |
| void | ForEach (F f) const |
| requires std::invocable<F, const Key&> | |
| void | Insert (const Key &key) |
| auto | begin () const |
| auto | end () const |
| using operations_research::math_opt::detail::DenseKeySet< n >::Key = AttrKey<n, NoSymmetry> |
{Dense,Sparse}KeySet stores symmetric keys, symmetry is handled by SlicingStorage.
Definition at line 42 of file attr_storage.h.
|
default |
|
inline |
Definition at line 61 of file attr_storage.h.
|
inline |
Definition at line 62 of file attr_storage.h.
|
inline |
requires std::invocable<F, const Key&>
Definition at line 50 of file attr_storage.h.
|
inline |
Definition at line 59 of file attr_storage.h.
|
inline |
Definition at line 46 of file attr_storage.h.