BloombergLP::bdlc::operator-

Subtraction operators

Synopses

Declared in <bdlc_bitarray.h>

Return the bitwise MINUS of the specified lhs and rhs arrays.

bdlc::BitArray
operator-(
    BitArray const& lhs,
    BitArray const& rhs);
» more...

Return the signed distance between two iterators (see free operator-).

template<>
std::ptrdiff_t
operator-(
    CompactedArray_ConstIterator const& lhs,
    CompactedArray_ConstIterator const& rhs);
» more...

Return the signed distance between two iterators (see free operator-).

template<>
std::ptrdiff_t
operator-<>(
    PackedIntArrayConstIterator const& lhs,
    PackedIntArrayConstIterator const& rhs);
» more...

Return an iterator at the negated specified offset from the given iterator (see free operator-).

template<>
CompactedArray_ConstIterator<TYPE>
operator-(
    CompactedArray_ConstIterator<TYPE> const& iterator,
    std::ptrdiff_t offset);
» more...

Return an iterator at the negated specified offset from iterator.

template<class TYPE>
bdlc::CompactedArray_ConstIterator<TYPE>
operator-(
    CompactedArray_ConstIterator<TYPE> const& iterator,
    std::ptrdiff_t offset);
» more...

Return the signed distance between the specified lhs and rhs.

template<class TYPE>
std::ptrdiff_t
operator-(
    CompactedArray_ConstIterator<TYPE> const& lhs,
    CompactedArray_ConstIterator<TYPE> const& rhs);
» more...

Return the number of elements between lhs and rhs.

template<class TYPE>
std::ptrdiff_t
operator-(
    PackedIntArrayConstIterator<TYPE> const& lhs,
    PackedIntArrayConstIterator<TYPE> const& rhs);
» more...

Return Value

  • bitwise MINUS of lhs and rhs
  • signed distance from rhs to lhs
  • iterator at the negated specified offset from iterator

Parameters

NameDescription
lhsfirst operand
rhssecond operand
iteratorbase iterator
offsetnumber of positions to move backward