From b2dbcb55e2832c373fecb4033a3ed77e5dbc77aa Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 21 Oct 2024 12:49:43 -0500 Subject: Add vector and option. --- include/fud_array.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/fud_array.hpp') diff --git a/include/fud_array.hpp b/include/fud_array.hpp index 807621a..dcbd54a 100644 --- a/include/fud_array.hpp +++ b/include/fud_array.hpp @@ -18,9 +18,10 @@ #ifndef FUD_ARRAY_HPP #define FUD_ARRAY_HPP -#include - #include "fud_memory.hpp" +#include "fud_span.hpp" + +#include namespace fud { @@ -106,6 +107,11 @@ struct Array { constexpr bool operator==(const Array&) const noexcept = default; constexpr auto operator<=>(const Array& other) const noexcept = default; + + Span span() + { + return Span{data(), Size}; + } }; } // namespace fud -- cgit v1.2.3