summaryrefslogtreecommitdiff
path: root/include/fud_array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/fud_array.hpp')
-rw-r--r--include/fud_array.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/fud_array.hpp b/include/fud_array.hpp
index dcbd54a..506ab27 100644
--- a/include/fud_array.hpp
+++ b/include/fud_array.hpp
@@ -104,7 +104,7 @@ struct Array {
return m_data[index];
}
- constexpr bool operator==(const Array<T, Size>&) const noexcept = default;
+ bool operator==(const Array<T, Size>&) const noexcept = default;
constexpr auto operator<=>(const Array<T, Size>& other) const noexcept = default;
@@ -112,6 +112,11 @@ struct Array {
{
return Span<T, Size>{data(), Size};
}
+
+ Span<T> dynSpan()
+ {
+ return Span<T>{data(), Size};
+ }
};
} // namespace fud