12 #include <mutils-containers/KindMap.hpp> 16 template <
typename MapType>
26 template <
typename MapType,
typename FirstType,
typename... RestTypes>
29 map.template get<FirstType>() = std::move(curr_factory);
42 template <
typename... Types>
44 mutils::KindMap<
Factory, Types...> factories_map;
45 kind_map_builder<decltype(factories_map), Types...>(factories_map, factories...);
mutils::KindMap< Factory, Types... > make_kind_map(Factory< Types >... factories)
Constructs a KindMap<Factory, Types...> from a list of factories of those types.
std::function< std::unique_ptr< T >(persistent::PersistentRegistry *)> Factory
The type of factory function the user must provide to the Group constructor, to construct each Replic...
void kind_map_builder(MapType &)