Skip to content

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

Notifications You must be signed in to change notification settings

dhamonex/container_factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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