|
|
@ -12,7 +12,7 @@ namespace rng::init
|
|
|
|
const std::function<Random* (const void*)>& apply_raw(std::string_view name, std::function<Random* (const void*)> fn) noexcept
|
|
|
|
const std::function<Random* (const void*)>& apply_raw(std::string_view name, std::function<Random* (const void*)> fn) noexcept
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(!INIT_MAP) INIT_MAP = new ctor_map();
|
|
|
|
if(!INIT_MAP) INIT_MAP = new ctor_map();
|
|
|
|
|
|
|
|
|
|
|
|
auto& map = *INIT_MAP;
|
|
|
|
auto& map = *INIT_MAP;
|
|
|
|
map[name] = std::move(fn);
|
|
|
|
map[name] = std::move(fn);
|
|
|
|
return map[name];
|
|
|
|
return map[name];
|
|
|
|