MCPcopy Create free account
hub / github.com/comaps/comaps / Has

Method Has

libs/coding/sparse_vector.hpp:20–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 bool Empty() const { return GetSize() == 0; }
19 uint64_t GetSize() const { return m_bits.size(); }
20 bool Has(uint64_t i) const { return m_bits[i]; }
21 Value const & Get(uint64_t i) const { return m_values[m_bits.rank(i)]; }
22
23 size_t GetMemorySize() const { return m_values.capacity() * sizeof(Value) + m_bits.size() / 8; }

Callers 1

UNIT_TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.36