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
-
T The type of object to be cloned.
Member Function Documentation
◆ apply()
template<typename T >
|
inlinestatic |
Apply the cloning policy.
- Parameters
-
ptr The pointer to apply clone policy.
- Returns
- The pointer to apply clone policy.