EnableCreateMethod< ConcreteType > Class Template Reference#
|
Reference API
|
gko::EnableCreateMethod< ConcreteType > Class Template Reference
#include <ginkgo/core/base/polymorphic_object.hpp>
Inheritance diagram for gko::EnableCreateMethod< ConcreteType >:
Static Public Member Functions | |
| template<typename... Args> | |
| static std::unique_ptr< ConcreteType > | create (Args &&... args) |
Detailed Description
template<typename ConcreteType>
class gko::EnableCreateMethod< ConcreteType >
class gko::EnableCreateMethod< ConcreteType >
This mixin implements a static create() method on ConcreteType that dynamically allocates the memory, uses the passed-in arguments to construct the object, and returns an std::unique_ptr to such an object.
- Template Parameters
-
ConcreteObject the concrete type for which create()is being implemented [CRTP parameter]
The documentation for this class was generated from the following file:
- ginkgo/core/base/polymorphic_object.hpp
Generated by