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