27 AArrayView(
const T* data, std::size_t count) noexcept : mData(data), mCount(count) {}
28 AArrayView(
const AVector<T>& vector)
noexcept: mData(vector.data()), mCount(vector.size()) {
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;
#define AUI_ASSERTX(condition, what)
Asserts that the passed condition evaluates to true. Adds extra message string.
Definition Assert.h:74