## System::MemberwiseClone method


Performs memberwise cloning using copy constructor.

```cpp
template<typename T> SmartPtr<Object> System::MemberwiseClone(T *ptr)
```


| Parameter | Description |
| --- | --- |
| T | Class to be copy-constructed. Subclass information is being lost. |

| Parameter | Type | Description |
| --- | --- | --- |
| ptr | T * | Pointer to the object to clone. |

### ReturnValue

Pointer to cloned object.

## See Also

* Class [SmartPtr](../smartptr/)
* Class [Object](../object/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
