Open Lighting Architecture: ola::ArrayDeleter Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | List of all members
ola::ArrayDeleter Class Reference

## Detailed Description

Deletes an array when it goes out of scope.

This is similar to unique_ptr<T[]>, which we should switch to once we start introducing C++11 syntax.

## Public Member Functions
| ArrayDeleter (const uint8_t *data)
| Create a new ArrayDeleter.
| ~ArrayDeleter ()
| Destructor.

## Constructor & Destructor Documentation

## ◆ ArrayDeleter()

ola::ArrayDeleter::ArrayDeleter | ( | const uint8_t * | data | ) |
| inlineexplicit

Create a new ArrayDeleter.

Parameters

  data | The data to wrap.

## ◆ ~ArrayDeleter()

ola::ArrayDeleter::~ArrayDeleter | ( |  | ) |
| inline

Destructor.

This calls delete[] on the data.

The documentation for this class was generated from the following file:

- include/ola/base/Array.h