## SmartPtr::operator[] method


Accesor para los elementos del arreglo. Solo se compila si [SmartPtr_](../smartptr_/) es una especialización de [System::Array](../../array/).

```cpp
template<typename IdxType> decltype(System::Details::GetByIndex(std::declval<const SmartPtr_ *>(), std::declval<IdxType>())) System::SmartPtr<T>::operator[](IdxType idx) const
```


| Parámetro | Descripción |
| --- | --- |
| IdxType | Tipo de índice (se asume integral). |

| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| idx | IdxType | Índice en el arreglo. |

### ReturnValue

[Array](../../array/) value at idx position.

## Ver también

* Typedef [SmartPtr_](../smartptr_/)
* Class [SmartPtr](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
martPtr_ & System::SmartPtr<T>::operator=(const SmartPtr_ &x)
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| x | const SmartPtr_\& | Puntero para asignación por copia. |

### ReturnValue

Referencia a este objeto.

## Ver también

* Typedef [SmartPtr_](../smartptr_/)
* Class [SmartPtr](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## SmartPtr::operator=(Pointee_ *) method


Asigna un puntero crudo al objeto [SmartPtr](../).

```cpp
SmartPtr_ & System::SmartPtr<T>::operator=(Pointee_ *p)
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| p | Pointee_ * | Valor del puntero a asignar. |

### ReturnValue

Referencia a este objeto.

## Ver también

* Typedef [SmartPtr_](../smartptr_/)
* Typedef [Pointee_](../pointee_/)
* Class [SmartPtr](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## SmartPtr::operator=(SmartPtr_\&&) method


Asigna por movimiento el objeto [SmartPtr](../). x se vuelve inutilizable.

```cpp
SmartPtr_ & System::SmartPtr<T>::operator=(SmartPtr_ &&x) noexcept
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| x | SmartPtr_\&& | Puntero para asignación por movimiento. |

### ReturnValue

Referencia a este objeto.

## Ver también

* Typedef [SmartPtr_](../smartptr_/)
* Class [SmartPtr](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## SmartPtr::operator=(std::nullptr_t) method


Establece el valor del puntero a nullptr.

```cpp
SmartPtr_ & System::SmartPtr<T>::operator=(std::nullptr_t)
```


### ReturnValue

Referencia a este objeto.

## Ver también

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