MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / Clear

Method Clear

Bcore/src/main/cpp/base/hash_set.h:139–143  ·  view source on GitHub ↗

If we don't own the data, this will create a new array which owns the data.

Source from the content-addressed store, hash-verified

137
138 // If we don't own the data, this will create a new array which owns the data.
139 void Clear() {
140 DeallocateStorage();
141 num_elements_ = 0;
142 elements_until_expand_ = 0;
143 }
144
145 HashSet() : HashSet(kDefaultMinLoadFactor, kDefaultMaxLoadFactor) {}
146

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected