OpenTTD Source 20250205-master-gfd85ab1e2c
Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::AllocCache Struct Reference

Helper struct to cache 'freed' PoolItems so we do not need to allocate them again. More...

Data Fields

AllocCachenext
 The next in our 'cache'.
 

Detailed Description

template<class Titem, typename Tindex, size_t Tgrowth_step, size_t Tmax_size, PoolType Tpool_type = PoolType::Normal, bool Tcache = false, bool Tzero = true>
struct Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::AllocCache

Helper struct to cache 'freed' PoolItems so we do not need to allocate them again.

Definition at line 403 of file pool_type.hpp.

Field Documentation

◆ next

template<class Titem , typename Tindex , size_t Tgrowth_step, size_t Tmax_size, PoolType Tpool_type = PoolType::Normal, bool Tcache = false, bool Tzero = true>
AllocCache* Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::AllocCache::next

The next in our 'cache'.

Definition at line 405 of file pool_type.hpp.


The documentation for this struct was generated from the following file: