Open Lighting Architecture  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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

Create a new ArrayDeleter.

Parameters
dataThe data to wrap.
ola::ArrayDeleter::~ArrayDeleter ( )
inline

Destructor.

This calls delete[] on the data.


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