System::MemberwiseClone method

System::MemberwiseClone method

Performs memberwise cloning using copy constructor.

template<typename T> SmartPtr<Object> System::MemberwiseClone(T *ptr)
ParameterDescription
TClass to be copy-constructed. Subclass information is being lost.
ParameterTypeDescription
ptrT *Pointer to the object to clone.

ReturnValue

Pointer to cloned object.

See Also