Equality operators

Synopses

Declared in <util/bitset.h>

Check if bitset a and bitset b are identical.

constexpr
bool
operator==(
    IntBitSet const& a,
    IntBitSet const& b) noexcept = default;

Test whether we are done (can only compare with IteratorEnd).

constexpr
bool
operator==(
    Iterator const& a,
    IteratorEnd const& end) noexcept;

Check if bitset a and bitset b are identical.

constexpr
bool
operator==(
    MultiIntBitSet const& a,
    MultiIntBitSet const& b) noexcept = default;

Test whether we are done (can only compare with IteratorEnd).

constexpr
bool
operator==(
    Iterator const& a,
    IteratorEnd const& end) noexcept;

Return Value

  • true if a and b have the same bits set.

  • true when no 1 bits remain to iterate.

  • true when all limbs have been iterated.

Parameters

Name

Description

a

The left‐hand bitset.

b

The right‐hand bitset.

end

The end sentinel to compare against.

Created with MrDocs