Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros
Array.h File Reference

Detailed Description

Helper macros / methods for static arrays.

Include dependency graph for Array.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ola::ArrayDeleter
 Deletes an array when it goes out of scope. More...
 

Namespaces

 ola
 The namespace containing all OLA symbols.
 

Macros

#define arraysize(array)   (sizeof(ola::ArraySizeHelper(array)))
 Computes the size of the statically allocated array. More...
 

Macro Definition Documentation

#define arraysize (   array)    (sizeof(ola::ArraySizeHelper(array)))

Computes the size of the statically allocated array.

Parameters
arraythe array to get the size of.
Returns
the number of elements in the array.