Skip to content

dhamonex/container_factory

Repository files navigation

Container Factory

A generic c++ 17 factory for filling containers with instances of objects.

This is experimenting and work in progress at the moment

Motivation

Quite often it is necessary to fill a container with instances of objects of a common base class. The goal ist that this can be archieved by the following code

container_factory::factory<Base, SubclassA, SubclassB>( destinationContainer, <additional constructor arguments> );

The destinationContainer should be any container type except where the value_type is a kind of std::pair.

About

A generic c++ 17 factory for filling containers with instances of objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published