BloombergLP::bdlb::IndexSpan

A constrained attribute type that represents a position and a length.

Synopsis

Declared in <bdlb_indexspan.h>

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

NameDescription
size_type The type of the position and length attributes.

Member Functions

NameDescription
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.

Non-Member Functions

NameDescription
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.