#include <object_pool.h>
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
VW::object_pool< T, TInitializer, TCleanup >::object_pool |
( |
size_t |
initial_chunk_size, |
|
|
TInitializer |
initializer = {} , |
|
|
size_t |
chunk_size = 8 |
|
) |
| |
|
inline |
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
bool VW::object_pool< T, TInitializer, TCleanup >::is_from_pool |
( |
T * |
obj | ) |
const |
|
inline |
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
void VW::object_pool< T, TInitializer, TCleanup >::return_object |
( |
T * |
obj | ) |
|
|
inline |
template<typename T, typename TInitializer = default_initializer<T>, typename TCleanup = default_cleanup<T>>
The documentation for this struct was generated from the following file: