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

Compare two destinations for equality by version and program.

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

Compare two destinations for equality by their public keys.

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

Compare two destinations for equality by their scripts.

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

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

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

Compare two extended keys for equality of all fields.

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

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

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

Compare two KeyOriginInfo for equality.

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

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

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

Compare two ellswift public keys for equality.

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

Comparator implementation.

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

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

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

Compare two wrapped FeeFracs for equal feerate.

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

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

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

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

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

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;

Compares two outpoints for equality.

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

Tests whether two big integers are equal.

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

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

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

Tests whether two big integers are equal.

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

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

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

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

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

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

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

Compare two services for equality.

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

Compare two addresses for equality.

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

Compare two subnets for equality.

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

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;

Compares two transactions for equality by witness hash.

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

Compares two outputs for equality.

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

Compares two inputs for equality.

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

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

Name

Description

a

The first position.

b

The second position.

w1

The first destination.

w2

The second destination.

Created with MrDocs