# Array

<a id="array"></a>

# Array

```cpp
template<class T>
struct Array
```

[Defined in src/base/include/icy/memory.h:235](https://github.com/auscaster/icey/blob/main/src/base/include/icy/memory.h#L235)

Deleter functor for array pointers. Calls delete[] on the pointer.

## Public Methods

| Return | Name | Description |
|--------|------|-------------|
| `void` | [`operator()`](#operator-194) `inline` | Calls delete[] on ptr if non-null. |

---

<a id="operator-194"></a>

### operator()

`inline`

```cpp
inline void operator()(T * ptr)
```

[Defined in src/base/include/icy/memory.h:239](https://github.com/auscaster/icey/blob/main/src/base/include/icy/memory.h#L239)

Calls delete[] on ptr if non-null.

#### Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `ptr` | `T *` | Array pointer to delete; may be nullptr. |
