[#BloombergLP-bdlb-IndexSpanUtil-shrink] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/IndexSpanUtil.adoc[IndexSpanUtil]::shrink :relfileprefix: ../../../ :mrdocs: 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()`. == Synopsis Declared in `<bdlb_indexspanutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] shrink( xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] const& original, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] shrinkBegin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] shrinkEnd); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#