operator==

Equality operators

Synopses

Declared in <arith_uint256.h>

Compares two positions for equality of file index and offset.

bool
operator==(
    FlatFilePos const& a,
    FlatFilePos const& b);
» more...

Compare two destinations for equality by version and program.

bool
operator==(
    WitnessUnknown const& w1,
    WitnessUnknown const& w2);
» more...

Compare two destinations for equality by their public keys.

bool
operator==(
    PubKeyDestination const& a,
    PubKeyDestination const& b);
» more...

Compare two destinations for equality by their scripts.

bool
operator==(
    CNoDestination const& a,
    CNoDestination const& b);
» more...

Test two fee rates for equality by their fee/vsize ratio.

bool
operator==(
    CFeeRate const& a,
    CFeeRate const& b) noexcept;
» more...

Compare two extended keys for equality of all fields.

bool
operator==(
    CExtKey const& a,
    CExtKey const& b);
» more...

Compare two private keys for equality of compression flag and key material.

bool
operator==(
    CKey const& a,
    CKey const& b);
» more...

Compare two KeyOriginInfo for equality.

constexpr
bool
operator==(
    KeyOriginInfo const& a,
    KeyOriginInfo const& b) = default;
» more...

Compare two extended public keys for equality of all fields (excluding version).

bool
operator==(
    CExtPubKey const& a,
    CExtPubKey const& b);
» more...

Compare two ellswift public keys for equality.

bool
operator==(
    EllSwiftPubKey const& a,
    EllSwiftPubKey const& b);
» more...

Comparator implementation.

bool
operator==(
    CPubKey const& a,
    CPubKey const& b);
» more...

Check whether two wrapped FeeFracs are equal (same fee and same size).

bool
operator==(
    ByRatioNegSize const& a,
    ByRatioNegSize const& b) noexcept;
» more...

Compare two wrapped FeeFracs for equal feerate.

bool
operator==(
    ByRatio const& a,
    ByRatio const& b) noexcept;
» more...

Check if two FeeFrac objects are equal (both same fee and same size).

bool
operator==(
    FeeFrac const& a,
    FeeFrac const& b) noexcept;
» more...

Equality comparison between two deques (only compares size+contents, not capacity).

bool
operator==(
    VecDeque const& a,
    VecDeque const& b);
» more...

Compares two secure allocators for equality; they are always equal since the allocator is stateless.

bool
operator==(
    secure_allocator const& a,
    secure_allocator<U> const& b) noexcept;
» more...

Compares two outpoints for equality.

bool
operator==(
    COutPoint const& a,
    COutPoint const& b);
» more...

Tests whether two big integers are equal.

bool
operator==(
    base_uint<256> const& a,
    base_uint<256> const& b);
» more...

Tests whether a big integer equals a 64-bit value.

bool
operator==(
    base_uint<256> const& a,
    uint64_t b);
» more...

Tests whether two big integers are equal.

bool
operator==(
    base_uint const& a,
    base_uint const& b);
» more...

Tests whether a big integer equals a 64-bit value.

bool
operator==(
    base_uint const& a,
    uint64_t b);
» more...

Returns whether two addresses have equal time, service flags, and endpoint.

bool
operator==(
    CAddress const& a,
    CAddress const& b);
» more...

Compares two allocators for equality; they are always equal since the allocator is stateless.

bool
operator==(
    zero_after_free_allocator<byte> const& a,
    zero_after_free_allocator<U> const& b) noexcept;
» more...

Compares two allocators for equality; they are always equal since the allocator is stateless.

bool
operator==(
    zero_after_free_allocator const& a,
    zero_after_free_allocator<U> const& b) noexcept;
» more...

Compare two services for equality.

bool
operator==(
    CService const& a,
    CService const& b);
» more...

Compare two addresses for equality.

bool
operator==(
    CNetAddr const& a,
    CNetAddr const& b);
» more...

Compare two subnets for equality.

bool
operator==(
    CSubNet const& a,
    CSubNet const& b);
» more...

Compares two pool allocators for equality.

template<
    class T1,
    class T2,
    std::size_t MAX_BLOCK_SIZE_BYTES,
    std::size_t ALIGN_BYTES>
bool
operator==(
    PoolAllocator<T1, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES> const& a,
    PoolAllocator<T2, MAX_BLOCK_SIZE_BYTES, ALIGN_BYTES> const& b) noexcept;
» more...

Compares two transactions for equality by witness hash.

bool
operator==(
    CTransaction const& a,
    CTransaction const& b);
» more...

Compares two outputs for equality.

bool
operator==(
    CTxOut const& a,
    CTxOut const& b);
» more...

Compares two inputs for equality.

bool
operator==(
    CTxIn const& a,
    CTxIn const& b);
» more...

Return Value

  • true if both the file index and offset are equal.
  • True if both hold equal versions and programs.
  • True if both hold equal public keys.
  • True if both hold equal scripts.
  • true if the fee rates are equal.
  • true if all fields are equal.
  • true if both keys have the same compression flag and byte data.
  • true if both the fingerprint and path are equal.
  • true if depth, fingerprint, child index, chain code and pubkey are equal.
  • true if both keys have identical bytes.
  • true if both public keys have identical serialized bytes.
  • True if the underlying FeeFracs are equal.
  • True if the two FeeFracs have the same feerate.
  • True if both the fee and the size are equal.
  • true if both deques have the same size and equal elements in order.
  • Always true.
  • True if both the hash and index are equal.
  • True if a and b are equal, otherwise false.
  • True if a equals b, otherwise false.
  • true if both addresses have equal time, service flags, and endpoint.
  • True when both services are equal.
  • True when both addresses are equal.
  • True when both subnets are equal.
  • True when both allocators share the same backing resource.
  • True if both transactions have the same witness hash.
  • True if both the value and spending script are equal.
  • True if the outpoint, signature script and sequence all match.

Parameters

NameDescription
aThe first position.
bThe second position.
w1The first destination.
w2The second destination.