|
JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
|
Default value construction policy for flat_pool. More...
#include <jh/concurrent/flat_pool.h>
Static Public Member Functions | |
| template<typename... Args> | |
| static V | make (Args &&... args) |
Default value construction policy for flat_pool.
value_factory<V> defines how values of type V are constructed when a new entry is inserted into a map-like flat_pool.
The default implementation forwards all arguments directly to V's constructor.
This template serves as a public extension point. Users may specialize value_factory for custom value types to override construction behavior without modifying flat_pool itself.
| V | Value type to construct. |