mrdocs::ArrayView::slice

Return a subview starting at pos with up to count elements.

Synopsis

Declared in <mrdocs/ADT/ArrayView.hpp>

constexpr
ArrayView
slice(
    size_type pos,
    size_type count = npos) const noexcept;

Return Value

Subview representing the requested slice.

Parameters

Name

Description

pos

Starting index within the current view.

count

Maximum number of elements to include; use npos for the remainder.

Created with MrDocs