BloombergLP::bdlb::IndexSpanUtil

This struct serves as a namespace for utility functions that operate on IndexSpan objects.

Synopsis

Declared in <bdlb_indexspanutil.h>

struct IndexSpanUtil;

Static Member Functions

NameDescription
shrink Return an IndexSpan object transformed from the specified original using the specified shrinkBegin and shrinkEnd so that its position is original.position() + shrinkBegin and whose length is original.length() - (shrinkBegin + shrinkEnd). The behavior is undefined unless shrinkBegin + shrinkEnd <= original.length().