![]() |
DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
|
Go to the source code of this file.
Namespaces | |
namespace | dbpp |
Functions | |
template<typename T, typename Args> | |
std::shared_ptr< T > | dbpp::factory (Args &&aArgs) |
Generic factory from an article. Forward reference can bind to factory parameters according to value categorie (preserve the lvalue/rvalue-ness of the argument that is passed to factory) | |
template<typename T, typename... Args> | |
std::shared_ptr< T > | dbpp::factoryCreator (Args &&...aArgs) |
Factory based on perfect-forwarding. Arguments can bind to any types (based on value categorie) to the factory parameters. Forward reference preserves the lvalue/rvalue-ness of the argument that is pass to the factory. | |
template<typename T, typename ... Args> | |
decltype(auto) | dbpp::create (Args &&...args) |
factory helper (works even neither coping nor moving is allowed). NOTE decltype(auto) operates by value if the expression used for initialization is an expression that create a (prvalue or temporary). |