34 AArrayView(
const T* data, std::size_t count) noexcept : mData(data), mCount(count) {}
36 AArrayView(
const AAnyVector<T> auto& vector)
noexcept: mData(vector.data()), mCount(vector.size()) {
40 template<std::
size_t N>
41 AArrayView(
const T (&rawArray)[N])
noexcept: mData(rawArray), mCount(N) {}
43 template<std::
size_t N>
44 AArrayView(
const std::array<T, N>& array)
noexcept: mData(array.data()), mCount(N) {}
47 const T* data()
const noexcept {
52 size_t size()
const noexcept {
56 size_t sizeInBytes()
const noexcept {
57 return mCount *
sizeof(T);
60 const T& operator[](std::size_t index)
const noexcept {
65 const T* begin()
const noexcept {
69 const T* end()
const noexcept {
70 return mData + mCount;
#define AUI_ASSERTX(condition, what)
Asserts that the passed condition evaluates to true. Adds extra message string.
Definition Assert.h:74