From 2a692fc46eb531820c9ebc023dbd76e603bc89c0 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 30 Nov 2023 01:00:38 -0600 Subject: [PATCH] [ox/std] Add Span::data() --- deps/ox/src/ox/std/span.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deps/ox/src/ox/std/span.hpp b/deps/ox/src/ox/std/span.hpp index c6e2ffd2..ff768c78 100644 --- a/deps/ox/src/ox/std/span.hpp +++ b/deps/ox/src/ox/std/span.hpp @@ -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;