#pragma once #include template class FixedHashSet : public FixedHashTable, FixedHashTableStoredSize>, Allocator> { public: using Cell = FixedHashTableCell; using Base = FixedHashTable, Allocator>; using Self = FixedHashSet; void merge(const Self & rhs) { for (size_t i = 0; i < Base::BUFFER_SIZE; ++i) if (Base::buf[i].isZero(*this) && !rhs.buf[i].isZero(*this)) new (&Base::buf[i]) Cell(rhs.buf[i]); } };