#pragma once #include "../ds/bits.h" namespace snmalloc { template class Pooled { private: template friend class Pool; template friend class MPMCStack; /// Used by the pool for chaining together entries when not in use. std::atomic next = nullptr; /// Used by the pool to keep the list of all entries ever created. T* list_next; }; } // namespace snmalloc