mrdocs::ArrayView::ArrayView

Constructors

Synopses

Declared in <mrdocs/ADT/ArrayView.hpp>

Construct an empty view.

constexpr
ArrayView() noexcept = default;
» more...

Construct a view from a C-style array.

template<size_type N>
constexpr
ArrayView(T const(& arr)[]) noexcept;
» more...

Construct a view from a pointer and element count.

constexpr
ArrayView(
    T const* data,
    size_type count) noexcept;
» more...

Construct a view from a contiguous iterator range of known size.

template<class It>
requires (std::contiguous_iterator<It> &&
             std::same_as<std::remove_cv_t<std::remove_reference_t<std::iter_value_t<It>>>, T>)
constexpr
ArrayView(
    It first,
    size_type count) noexcept;
» more...

Parameters

NameDescription
arrThe array to view.
dataPointer to the first element.
countNumber of elements in the range.
firstIterator to the first element.