helib::DeepCopy< T > Struct Template Reference

Deep copy an object by using its clone method. More...

#include <ClonedPtr.h>

Static Public Member Functions

static T * apply (const T *ptr)
 Apply the cloning policy. More...
 

Detailed Description

template<typename T>
struct helib::DeepCopy< T >

Deep copy an object by using its clone method.

Template Parameters
TThe type of object to be cloned.

Member Function Documentation

◆ apply()

template<typename T >
static T* helib::DeepCopy< T >::apply ( const T *  ptr)
inlinestatic

Apply the cloning policy.

Parameters
ptrThe pointer to apply clone policy.
Returns
The pointer to apply clone policy.