Libosmium
2.8.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <bool_vector.hpp>
Public Member Functions | |
BoolVector ()=default | |
BoolVector (const BoolVector &)=default | |
BoolVector (BoolVector &&)=default | |
BoolVector & | operator= (const BoolVector &)=default |
BoolVector & | operator= (BoolVector &&)=default |
~BoolVector () noexcept=default | |
void | set (T id, bool value=true) |
bool | get (T id) const |
Private Attributes | |
std::vector< bool > | m_bits |
Index storing one bit for each Id. The index automatically scales with the Ids stored. Default value is 'false'. Storage uses std::vector<bool> and needs a minimum of memory if the Ids are dense.
|
default |
|
default |
|
default |
|
defaultnoexcept |
|
inline |
|
default |
|
default |
|
inline |
|
private |