LeviLamina
Loading...
Searching...
No Matches
buffer_span.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5template <typename T0>
7public:
8 T0 const* mBegin; // this+0x0
9 T0 const* mEnd; // this+0x8
10
11 buffer_span() = default;
12
13 [[nodiscard]] inline size_t size() const { return mEnd - mBegin; }
14
15 inline T0* begin() { return mBegin; }
16
17 inline T0* end() { return mEnd; }
18
19 inline T0& operator[](size_t index) { return mBegin[index]; }
20
21 inline T0 const& operator[](size_t index) const { return mBegin[index]; }
22};
Definition buffer_span.h:6