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.
Loading...
Searching...
No Matches
jh::conc::extension::value_factory< V > Struct Template Referencefinal

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)

Detailed Description

template<typename V>
struct jh::conc::extension::value_factory< V >

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.

Template Parameters
VValue type to construct.

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