## System::MakeSharedPtr(const X *) method


يحوِّل المؤشر الخام إلى مؤشر ذكي. نسخة مُحمَّلة للمؤشرات الثابتة. مفيدة، على سبيل المثال، عند استخدام المتغيّر 'this' في طرق C# التي تُترجم إلى const.

```cpp
template<class X> SmartPtr<X> System::MakeSharedPtr(const X *p)
```


| Parameter | الوصف |
| --- | --- |
| X | نوع المؤشر إليه. |

| Parameter | Type | الوصف |
| --- | --- | --- |
| p | const X * | مؤشر خام إلى كائن. |

### ReturnValue

مؤشر ذكي مشترك إلى كائن.

## انظر أيضًا

* Class [SmartPtr](../smartptr/)
* Namespace [System](../)
* Library [Aspose.Page for C++](../../)
## System::MakeSharedPtr(X *) method


يحوِّل المؤشر الخام إلى مؤشر ذكي.

```cpp
template<class X> SmartPtr<X> System::MakeSharedPtr(X *p)
```


| Parameter | الوصف |
| --- | --- |
| X | نوع المؤشر إليه. |

| Parameter | Type | الوصف |
| --- | --- | --- |
| p | X * | مؤشر خام إلى كائن. |

### ReturnValue

مؤشر ذكي مشترك إلى كائن.

## انظر أيضًا

* Class [SmartPtr](../smartptr/)
* Namespace [System](../)
* Library [Aspose.Page for C++](../../)
