Create an IndexSpan object with the specified position and length.

Synopsis

Declared in <bdlb_indexspan.h>

IndexSpan(
    size_type position,
    size_type length);

Description

The behavior is undefined unless position <= bsl::numeric_limits<size_t>::max() ‐ length.

Parameters

Name

Description

position

starting index of the span

length

number of elements in the span

Created with MrDocs