[ox/std] Add Span::data()

This commit is contained in:
Gary Talent 2023-11-30 01:00:38 -06:00
parent e543131f0d
commit 2a692fc46e

View File

@ -214,6 +214,11 @@ class Span {
return m_items[i];
}
[[nodiscard]]
constexpr auto data() const noexcept {
return m_items;
}
[[nodiscard]]
constexpr std::size_t size() const noexcept {
return m_size;