header_utils
Loading...
Searching...
No Matches
Object Pools

Classes that implement object pools and pointers to them. More...

Classes

struct  ghassanpl::pool< T, BLOCK_SIZE >
 Very simple object pool implementation. More...
struct  ghassanpl::thread_local_pool< T, BLOCK_SIZE >
 A pool that can be used in a thread-local fashion. More...

Typedefs

template<typename T>
using ghassanpl::pooled_ptr
 A version of unique_ptr<T> that returns the object to the (thread-local) pool on destruction.

Functions

template<typename T, typename... ARGS>
thread_local_pool< T >::pooled_ptr ghassanpl::make_pooled (ARGS &&... args)
 Helper to create pooled_ptrs ala make_unique.

Detailed Description

Classes that implement object pools and pointers to them.

Typedef Documentation

◆ pooled_ptr

template<typename T>
using ghassanpl::pooled_ptr

A version of unique_ptr<T> that returns the object to the (thread-local) pool on destruction.

Definition at line 89 of file pools.h.

Function Documentation

◆ make_pooled()

template<typename T, typename... ARGS>
thread_local_pool< T >::pooled_ptr ghassanpl::make_pooled ( ARGS &&... args)

Helper to create pooled_ptrs ala make_unique.

Definition at line 93 of file pools.h.