MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / clear

Method clear

src/semiorderedset.h:235–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 }
234
235 void clear()
236 {
237 m_data = decltype(m_data)();
238 bits = bits_min;
239 m_data.resize(1ULL << bits);
240 celem = 0;
241 idxRehash = m_data.size();
242 }
243
244 bool empty() const noexcept { return celem == 0; }
245 size_t size() const noexcept { return celem; }

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected