[#BloombergLP-bdlb-IndexSpan] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::IndexSpan :relfileprefix: ../../ :mrdocs: A constrained attribute type that represents a position and a length. == Synopsis Declared in `<bdlb_indexspan.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class IndexSpan; ---- == Description The constraint is that the sum of the position and length attributes must be representable by the `bsl::size_t` type. == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[`size_type`] | The type of the position and length attributes. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/IndexSpan/2constructor-05.adoc[`IndexSpan`] [.small]#[constructor]# | Constructors | xref:BloombergLP/bdlb/IndexSpan/isEmpty.adoc[`isEmpty`] | Return `true` if the length attribute is 0; and return `false` otherwise. | xref:BloombergLP/bdlb/IndexSpan/length.adoc[`length`] | Return the length attribute. | xref:BloombergLP/bdlb/IndexSpan/position.adoc[`position`] | Return the position attribute. | xref:BloombergLP/bdlb/IndexSpan/print.adoc[`print`] | Format this object to the specified output `stream`. | xref:BloombergLP/bdlb/IndexSpan/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<IndexSpan, HasPrintMethod>`] | Declare that this type is trivially copyable. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/operator_not_eq-07f.adoc[`operator!=`] | Return `true` if the specified `lhs` and `rhs` do not have the same value. | xref:BloombergLP/bdlb/operator_eq-0b.adoc[`operator==`] | Return `true` if the specified `lhs` and `rhs` have the same value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#