## SmartPtr::Cast() const method


İşaretçiyi kendi tipine dönüştürür.

```cpp
template<class Y,typename Check> std::enable_if_t<std::is_same<Y, T>::value, SmartPtr<Y>> System::SmartPtr<T>::Cast() const
```


| Parameter | Açıklama |
| --- | --- |
| Y | İşaret edilen nesnenin hedef tipi. |
| Check | Dönüştürme mevcut değilse istisna fırlatmak için bayraklar. |

### ReturnValue

Her zaman paylaşımlı modda olan, değiştirilmiş tipteki işaretçi.

## Ayrıca Bakınız

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


İşaretçiyi static_cast kullanarak temel tipe dönüştürür.

```cpp
template<class Y,typename Check> std::enable_if_t<!std::is_same<Y, T>::value &&std::is_base_of<Y, T>::value, SmartPtr<Y>> System::SmartPtr<T>::Cast() const
```


| Parameter | Açıklama |
| --- | --- |
| Y | İşaret edilen nesnenin hedef tipi. |
| Check | Dönüştürme mevcut değilse istisna fırlatmak için bayraklar. |

### ReturnValue

Her zaman paylaşımlı modda olan, değiştirilmiş tipteki işaretçi.

## Ayrıca Bakınız

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


İşaretçiyi dynamic_cast kullanarak türetilmiş tipe dönüştürür.

```cpp
template<class Y,typename Check> std::enable_if_t<Check::value &&!std::is_same<Y, T>::value &&!std::is_base_of<Y, T>::value, SmartPtr<Y>> System::SmartPtr<T>::Cast() const
```


| Parameter | Açıklama |
| --- | --- |
| Y | İşaret edilen nesnenin hedef tipi. |
| Check | Dönüştürme mevcut değilse istisna fırlatmak için bayraklar. |

### ReturnValue

Her zaman paylaşımlı kipte olan, değiştirilmiş tipte işaretçi. Dönüştürme mevcut değilse InvalidCastException fırlatır.

## Ayrıca Bakınız

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


İşaretçiyi dynamic_cast kullanarak türetilmiş tipe dönüştürür.

```cpp
template<class Y,typename Check> std::enable_if_t<!Check::value &&!std::is_same<Y, T>::value &&!std::is_base_of<Y, T>::value, SmartPtr<Y>> System::SmartPtr<T>::Cast() const
```


| Parameter | Açıklama |
| --- | --- |
| Y | İşaret edilen nesnenin hedef tipi. |
| Check | Dönüştürme mevcut değilse istisna fırlatmak için bayraklar. |

### ReturnValue

Her zaman paylaşımlı kipte olan, değiştirilmiş tipte işaretçi. Dönüştürme mevcut değilse nullptr döndürür.

## Ayrıca Bakınız

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