TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
factory.hpp
#include "./macros.hpp"
#include <utility>
#include <vector>

Detailed Description

Generic factory for constructing objects of a given type.

Definition in file factory.hpp.

Go to the source code of this file.

Functions

template<typename T, typename... U>
triqs::utility::factory (U &&...x)
 Generic factory to construct an object of a given type from an arbitrary parameter pack of arguments.