[#BloombergLP-bdlb-IndexSpan-2constructor-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]::IndexSpan :relfileprefix: ../../../ :mrdocs: Create an `IndexSpan` object with the specified `position` and `length`. == Synopsis Declared in `<bdlb_indexspan.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- IndexSpan( xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[size_type] position, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[size_type] length); ---- == Description The behavior is undefined unless `position <= bsl::numeric_limits<size_t>::max() ‐ length`. == Parameters [cols="1,4"] |=== | Name| Description | *position* | starting index of the span | *length* | number of elements in the span |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#