BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlb::IndexSpanUtil Struct Reference

#include <bdlb_indexspanutil.h>

Detailed Description

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

See bdlb_indexspanutil

Static Public Member Functions

static IndexSpan shrink (const IndexSpan &original, IndexSpan::size_type shrinkBegin, IndexSpan::size_type shrinkEnd)
 

Member Function Documentation

◆ shrink()

IndexSpan bdlb::IndexSpanUtil::shrink ( const IndexSpan original,
IndexSpan::size_type  shrinkBegin,
IndexSpan::size_type  shrinkEnd 
)
inlinestatic

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).

Precondition
The behavior is undefined unless shrinkBegin + shrinkEnd <= original.length().

The documentation for this struct was generated from the following file: