\hypertarget{structkblib_1_1clone__copy}{}\doxysection{kblib\+::clone\+\_\+copy\texorpdfstring{$<$}{<} Obj \texorpdfstring{$>$}{>} Struct Template Reference}
\label{structkblib_1_1clone__copy}\index{kblib::clone\_copy$<$ Obj $>$@{kblib::clone\_copy$<$ Obj $>$}}


Implements copy construction using a virtual clone method. This type is provided mostly as an example.  




{\ttfamily \#include $<$kblib/poly\+\_\+obj.\+h$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{structkblib_1_1clone__copy_a63665ae302ac139ccd642355214deeb5}{clone\+\_\+copy}} ()=default
\begin{DoxyCompactList}\small\item\em Does nothing. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\\mbox{\hyperlink{structkblib_1_1clone__copy_ac2a901a9473f364234e13d2813ead6a7}{clone\+\_\+copy}} (T $\ast$)
\begin{DoxyCompactList}\small\item\em Does nothing. \end{DoxyCompactList}\item 
auto \mbox{\hyperlink{structkblib_1_1clone__copy_a8416f432b6fd97f8ed0ac290e4982136}{copy}} (void $\ast$dest, const Obj $\ast$from) -\/$>$ Obj $\ast$
\begin{DoxyCompactList}\small\item\em Invokes the clone method to copy the object. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename Obj$>$\newline
struct kblib\+::clone\+\_\+copy$<$ Obj $>$}
Implements copy construction using a virtual clone method. This type is provided mostly as an example. 

Definition at line \mbox{\hyperlink{poly__obj_8h_source_l00291}{291}} of file \mbox{\hyperlink{poly__obj_8h_source}{poly\+\_\+obj.\+h}}.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{structkblib_1_1clone__copy_a63665ae302ac139ccd642355214deeb5}\label{structkblib_1_1clone__copy_a63665ae302ac139ccd642355214deeb5}} 
\index{kblib::clone\_copy$<$ Obj $>$@{kblib::clone\_copy$<$ Obj $>$}!clone\_copy@{clone\_copy}}
\index{clone\_copy@{clone\_copy}!kblib::clone\_copy$<$ Obj $>$@{kblib::clone\_copy$<$ Obj $>$}}
\doxysubsubsection{\texorpdfstring{clone\_copy()}{clone\_copy()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename Obj $>$ \\
\mbox{\hyperlink{structkblib_1_1clone__copy}{kblib\+::clone\+\_\+copy}}$<$ Obj $>$\+::clone\+\_\+copy (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}}



Does nothing. 

\mbox{\Hypertarget{structkblib_1_1clone__copy_ac2a901a9473f364234e13d2813ead6a7}\label{structkblib_1_1clone__copy_ac2a901a9473f364234e13d2813ead6a7}} 
\index{kblib::clone\_copy$<$ Obj $>$@{kblib::clone\_copy$<$ Obj $>$}!clone\_copy@{clone\_copy}}
\index{clone\_copy@{clone\_copy}!kblib::clone\_copy$<$ Obj $>$@{kblib::clone\_copy$<$ Obj $>$}}
\doxysubsubsection{\texorpdfstring{clone\_copy()}{clone\_copy()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename Obj $>$ \\
template$<$typename T $>$ \\
\mbox{\hyperlink{structkblib_1_1clone__copy}{kblib\+::clone\+\_\+copy}}$<$ Obj $>$\+::clone\+\_\+copy (\begin{DoxyParamCaption}\item[{T $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Does nothing. 



Definition at line \mbox{\hyperlink{poly__obj_8h_source_l00296}{296}} of file \mbox{\hyperlink{poly__obj_8h_source}{poly\+\_\+obj.\+h}}.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{structkblib_1_1clone__copy_a8416f432b6fd97f8ed0ac290e4982136}\label{structkblib_1_1clone__copy_a8416f432b6fd97f8ed0ac290e4982136}} 
\index{kblib::clone\_copy$<$ Obj $>$@{kblib::clone\_copy$<$ Obj $>$}!copy@{copy}}
\index{copy@{copy}!kblib::clone\_copy$<$ Obj $>$@{kblib::clone\_copy$<$ Obj $>$}}
\doxysubsubsection{\texorpdfstring{copy()}{copy()}}
{\footnotesize\ttfamily template$<$typename Obj $>$ \\
auto \mbox{\hyperlink{structkblib_1_1clone__copy}{kblib\+::clone\+\_\+copy}}$<$ Obj $>$\+::copy (\begin{DoxyParamCaption}\item[{void $\ast$}]{dest,  }\item[{const Obj $\ast$}]{from }\end{DoxyParamCaption}) -\/$>$ Obj$\ast$ \hspace{0.3cm}{\ttfamily [inline]}}



Invokes the clone method to copy the object. 



Definition at line \mbox{\hyperlink{poly__obj_8h_source_l00299}{299}} of file \mbox{\hyperlink{poly__obj_8h_source}{poly\+\_\+obj.\+h}}.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
kblib/\mbox{\hyperlink{poly__obj_8h}{poly\+\_\+obj.\+h}}\end{DoxyCompactItemize}
