18#include <AUI/Common/AVector.h>
19#include <AUI/Common/AStaticVector.h>
27 AArrayView(
const T* data, std::size_t count) noexcept : mData(data), mCount(count) {}
32 template<
size_t Capacity>
37 template<std::
size_t N>
38 AArrayView(
const T (&rawArray)[N])
noexcept: mData(rawArray), mCount(N) {}
40 template<std::
size_t N>
41 AArrayView(
const std::array<T, N>& array)
noexcept: mData(array.data()), mCount(N) {}
44 const T* data()
const noexcept {
49 size_t size()
const noexcept {
53 size_t sizeInBytes()
const noexcept {
54 return mCount *
sizeof(T);
57 const T& operator[](std::size_t index)
const noexcept {
62 const T* begin()
const noexcept {
66 const T* end()
const noexcept {
67 return mData + mCount;
Definition: AArrayView.h:25
Vector-like container up to maxSize elements inplace.
Definition: AStaticVector.h:33
A std::vector with AUI extensions.
Definition: AVector.h:38
#define AUI_ASSERTX(condition, what)
Asserts that the passed condition evaluates to true. Adds extra message string.
Definition: Assert.h:74