template<typename T>
xmol::future::Span struct

Analogue of C++20 std::span.

Constructors, destructors, conversion operators

Span() constexpr
Span(T* b, T* e) constexpr
Span(T* b, size_t n) constexpr
Span(std::vector<T>& v) constexpr
template<size_t N>
Span(std::array<T, N>& v) constexpr

Public functions

auto size() const -> size_t constexpr
auto empty() const -> size_t
auto begin() const -> T*
auto end() const -> T*
auto data() const -> T*
auto operator[](size_t i) -> T&
auto operator[](size_t i) const -> const T&
void rebase(const T* from, T* to)

Public variables

T* m_begin
T* m_end