38 using GlobalRef::GlobalRef;
40 static ArrayView allocate(std::size_t size) {
44 std::size_t size()
const noexcept {
48 template<aui::invocable<std::span<const T>> Callback>
49 void view(Callback&& callback)
const {
57 callback(std::span<const T>(
ptr, size()));
60 template<aui::invocable<std::span<T>> Callback>
61 void modify(Callback&& callback)
const {
69 callback(std::span<T>(
ptr, size()));
72 void set(std::span<const T> data, std::size_t at = 0) {