[#operator_eq-0ee] = operator== :mrdocs: Compares two outputs for equality. == Synopsis Declared in `<primitives/transaction.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( xref:CTxOut.adoc[CTxOut] const& a, xref:CTxOut.adoc[CTxOut] const& b); ---- [NOTE] ==== This function is a https://en.cppreference.com/w/cpp/language/friend[hidden friend] of xref:CTxOut.adoc[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 [cols="1,4"] |=== | Name| Description | *a* | The left‐hand output. | *b* | The right‐hand output. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#