22 pools->erase(std::ranges::find(*pools,
this));
23 if (pools->empty())
delete pools;
33 if (pt.
Test(pool->type)) pool->CleanPool();
constexpr bool Test(Tvalue_type value) const
Test if the value-th bit is set.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
std::vector< struct PoolBase * > PoolVector
Vector of pointers to PoolBase.
A number of safeguards to prevent using unsafe methods.
Definition of base types and functions in a cross-platform compatible way.
static PoolVector * GetPools()
Function used to access the vector of all pools.
PoolBase(PoolType pt)
Constructor registers this object in the pool vector.
static void Clean(PoolTypes)
Clean all pools of given type.
virtual ~PoolBase()
Destructor removes this object from the pool vector and deletes the vector itself if this was the las...