A simplified pool which stores values instead of pointers and doesn't redefine operator new/delete.
More...
template<typename Titem, typename Tindex, Tindex Tgrowth_step, Tindex Tmax_size>
class SimplePool< Titem, Tindex, Tgrowth_step, Tmax_size >
A simplified pool which stores values instead of pointers and doesn't redefine operator new/delete.
It also never zeroes memory and always reuses it.
Definition at line 21 of file smallstack_type.hpp.
template<typename Titem , typename Tindex , Tindex Tgrowth_step, Tindex Tmax_size>
void SimplePool< Titem, Tindex, Tgrowth_step, Tmax_size >::Destroy |
( |
Tindex |
index | ) |
|
|
inline |
template<typename Titem , typename Tindex , Tindex Tgrowth_step, Tindex Tmax_size>
Titem & SimplePool< Titem, Tindex, Tgrowth_step, Tmax_size >::Get |
( |
Tindex |
index | ) |
|
|
inline |
Get the item at position index.
- Returns
- Item at index.
Definition at line 36 of file smallstack_type.hpp.
Referenced by SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Branch(), SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Contains(), SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Pop(), and SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Push().