A class used to access the elements of an array.
More...
#include <xentara/memory/ArrayAccessor.hpp>
A class used to access the elements of an array.
◆ operator[]() [1/2]
internal auto xentara::memory::ArrayAccessor::operator[] |
( |
const Array::Handle & |
handle | ) |
const -> void *
|
|
noexcept |
Gets a raw memory element.
- Parameters
-
- Returns
- The placement of the corresponding element
◆ operator[]() [2/2]
template<typename Type >
auto xentara::memory::ArrayAccessor::operator[] |
( |
const Array::ObjectHandle< Type > & |
handle | ) |
const -> Type &
|
|
noexcept |
Gets an element containing a C++ object.
- Parameters
-
- Returns
- A reference to the corresponding element