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


Convierte un puntero crudo a un puntero inteligente. Sobrecarga para punteros const. Útil, por ejemplo, al usar la variable 'this' en métodos de C# traducidos como const.

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


| Parámetro | Descripción |
| --- | --- |
| X | Tipo apuntado. |

| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| p | const X * | Puntero crudo al objeto. |

### ReturnValue

Puntero inteligente compartido al objeto.

## Ver también

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


Convierte un puntero crudo a un puntero inteligente.

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


| Parámetro | Descripción |
| --- | --- |
| X | Tipo apuntado. |

| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| p | X * | Puntero crudo al objeto. |

### ReturnValue

Puntero inteligente compartido al objeto.

## Ver también

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