operator==

Compares two outputs for equality.

Synopsis

Declared in <primitives/transaction.h>

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

NOTE

This function is a hidden friend of CTxOut, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

True if both the value and spending script are equal.

Parameters

NameDescription
aThe left-hand output.
bThe right-hand output.