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

Name

Description

a

The left‐hand output.

b

The right‐hand output.

Created with MrDocs