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);

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

template<>
std::ptrdiff_t
operator‐(
    CompactedArray_ConstIterator const& lhs,
    CompactedArray_ConstIterator const& rhs);

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

template<>
std::ptrdiff_t
operator‐<>(
    PackedIntArrayConstIterator const& lhs,
    PackedIntArrayConstIterator const& rhs);

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);

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);

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);

Return the number of elements between lhs and rhs.

template<class TYPE>
std::ptrdiff_t
operator‐(
    PackedIntArrayConstIterator<TYPE> const& lhs,
    PackedIntArrayConstIterator<TYPE> const& rhs);

Return Value

  • bitwise MINUS of lhs and rhs

  • signed distance from rhs to lhs

  • iterator at the negated specified offset from iterator

Parameters

Name

Description

lhs

first operand

rhs

second operand

iterator

base iterator

offset

number of positions to move backward

Created with MrDocs