Quick Links: |
#include <bdlb_indexspanutil.h>
Static Public Member Functions | |
static IndexSpan | shrink (const IndexSpan &original, IndexSpan::size_type shrinkBegin, IndexSpan::size_type shrinkEnd) |
This struct serves as a namespace for utility functions that operate on 'IndexSpan'objects.
See Component bdlb_indexspanutil
static IndexSpan bdlb::IndexSpanUtil::shrink | ( | const IndexSpan & | original, | |
IndexSpan::size_type | shrinkBegin, | |||
IndexSpan::size_type | shrinkEnd | |||
) | [static] |
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()
.