helib::ShallowCopy< T > Struct Template Reference

Shallow copy an object by using its copy constructor. 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::ShallowCopy< T >

Shallow copy an object by using its copy constructor.

Template Parameters
TThe type of object to be cloned.

Member Function Documentation

◆ apply()

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

Apply the cloning policy.

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