File array.hpp

Typedefs

template<typename Array>
using ArrayDecorator = IndexableViewDecorator<ViewDecorator<Array>>

Provides random read and write access to the values stored in an array.

Template Parameters:

Array – The type of the array

template<typename T>
class Array : public IndexableViewDecorator<AllocatedView<T>>
#include <array.hpp>

An array that provides random read and write access to newly allocated memory.

Template Parameters:

T – The type of the values stored in the array

Public Functions

inline Array(uint32 numElements, bool init = false)
Parameters:
  • numElements – The number of elements in the array

  • init – True, if all elements in the array should be value-initialized, false otherwise