## System::const_pointer_cast method


const_cast を使用してスマートポインタをキャストします。

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


| パラメーター | 説明 |
| --- | --- |
| X | ソースポインタが指す型。 |
| Y | 対象ポインタの指す型。 |

| パラメーター | 型 | 説明 |
| --- | --- | --- |
| x | SmartPtr\<X\> const\& | ソース ポインタ。 |

### ReturnValue

キャスト後のポインタ。

## 参照

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