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
-
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.