## System::const_pointer_cast method


يحوِّل المؤشرات الذكية باستخدام const_cast.

```cpp
template<class Y,class X> SmartPtr<Y> System::const_pointer_cast(SmartPtr<X> const &x)
```


| Parameter | الوصف |
| --- | --- |
| X | نوع الكائن المشير إليه من المؤشر المصدر. |
| Y | نوع العنصر الذي يشير إليه المؤشر الهدف. |

| Parameter | Type | الوصف |
| --- | --- | --- |
| x | SmartPtr\<X\> const\& | مؤشر المصدر. |

### ReturnValue

المؤشر بعد التحويل.

## انظر أيضًا

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