BloombergLP::bdlb::IndexSpan::IndexSpan

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

NameDescription
positionstarting index of the span
lengthnumber of elements in the span