MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setEmpty

Method setEmpty

source/core/StarFlatHashTable.hpp:183–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182template <typename Value, typename Key, typename GetKey, typename Hash, typename Equals, typename Allocator>
183void FlatHashTable<Value, Key, GetKey, Hash, Equals, Allocator>::Bucket::setEmpty() {
184 if (auto s = valuePtr())
185 s->~Value();
186 this->hash = EmptyHashValue;
187}
188
189template <typename Value, typename Key, typename GetKey, typename Hash, typename Equals, typename Allocator>
190void FlatHashTable<Value, Key, GetKey, Hash, Equals, Allocator>::Bucket::setEnd() {

Callers 2

clearMethod · 0.80
eraseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected