19template <
typename Tdata>
22 std::vector<std::span<Tdata>> data_span;
30 const auto new_begin =
data.end();
31 data.insert(new_begin, spn.begin(), spn.end());
32 data_span.emplace_back(new_begin,
data.end());
37 const auto new_begin =
data.end();
39 data_span.emplace_back(new_begin, new_begin + 1);
42 [[nodiscard]]
constexpr auto begin() noexcept {
return data_span.begin(); }
43 [[nodiscard]]
constexpr auto end() noexcept {
return data_span.end(); }
45 [[nodiscard]]
constexpr auto cbegin() noexcept {
return data_span.cbegin(); }
46 [[nodiscard]]
constexpr auto cend() noexcept {
return data_span.cend(); }
Definition: ArrayVec.hpp:21
void push_back(std::span< const Tdata > spn)
Definition: ArrayVec.hpp:28
std::vector< Tdata > data
Definition: ArrayVec.hpp:25
constexpr auto begin() noexcept
Definition: ArrayVec.hpp:42
constexpr auto end() noexcept
Definition: ArrayVec.hpp:43
constexpr auto cend() noexcept
Definition: ArrayVec.hpp:46
void push_back(const Tdata &x)
Definition: ArrayVec.hpp:35
constexpr auto cbegin() noexcept
Definition: ArrayVec.hpp:45
Slide namespace contains all the types, classes, and functions for the simulation framework.
Definition: Cell.hpp:27