A constrained attribute type that represents a position and a length.
Declared in <bdlb_indexspan.h>
class IndexSpan;
The constraint is that the sum of the position and length attributes must be representable by the bsl::size_t type.
| Name | Description |
|---|---|
size_type | The type of the position and length attributes. |
| Name | Description |
|---|---|
IndexSpan [constructor] | Constructors |
isEmpty | Return true if the length attribute is 0; and return false otherwise. |
length | Return the length attribute. |
position | Return the position attribute. |
print | Format this object to the specified output stream. |
operator BloombergLP::bslmf::NestedTraitDeclaration<IndexSpan, HasPrintMethod> | Declare that this type is trivially copyable. |
| Name | Description |
|---|---|
operator!= | Return true if the specified lhs and rhs do not have the same value. |
operator== | Return true if the specified lhs and rhs have the same value. |