\doxysection{gko::\+Enable\+Create\+Method\texorpdfstring{$<$}{<} Concrete\+Type \texorpdfstring{$>$}{>} Class Template Reference}
\hypertarget{classgko_1_1EnableCreateMethod}{}\label{classgko_1_1EnableCreateMethod}\index{gko::EnableCreateMethod$<$ ConcreteType $>$@{gko::EnableCreateMethod$<$ ConcreteType $>$}}


This mixin implements a static {\ttfamily create()} method on {\ttfamily Concrete\+Type} that dynamically allocates the memory, uses the passed-\/in arguments to construct the object, and returns an std::\+unique\+\_\+ptr to such an object.  




{\ttfamily \+\#include $<$ginkgo/\+core/\+base/\+polymorphic\+\_\+object.\+hpp$>$}



Inheritance diagram for gko::\+Enable\+Create\+Method\texorpdfstring{$<$}{<} Concrete\+Type \texorpdfstring{$>$}{>}:\+
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classgko_1_1EnableCreateMethod__inherit__graph}
\end{center}
\end{figure}
\doxysubsubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classgko_1_1EnableCreateMethod_a01835426ef7b8f0f636f2ab33af9a7f3}\label{classgko_1_1EnableCreateMethod_a01835426ef7b8f0f636f2ab33af9a7f3} 
{\footnotesize template$<$typename... Args$>$ }\\static std::\+unique\+\_\+ptr$<$ Concrete\+Type $>$ {\bfseries create} (Args \&\&... args)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename Concrete\+Type$>$\newline
class gko::\+\+Enable\+Create\+Method$<$ Concrete\+Type $>$}
This mixin implements a static {\ttfamily create()} method on {\ttfamily Concrete\+Type} that dynamically allocates the memory, uses the passed-\/in arguments to construct the object, and returns an std::\+unique\+\_\+ptr to such an object. 


\begin{DoxyTemplParams}{Template Parameters}
{\em Concrete\+Object} & the concrete type for which {\ttfamily create()} is being implemented \+[CRTP parameter]\+ \\
\hline
\end{DoxyTemplParams}


The documentation for this class was generated from the following file:\+\begin{DoxyCompactItemize}
\item 
ginkgo/\+core/\+base/\+polymorphic\+\_\+object.\+hpp\end{DoxyCompactItemize}
