operator<

Orders two inventory entries by type and then by hash.

Synopsis

Declared in <protocol.h>

bool
operator<(
    CInv const& a,
    CInv const& b);

Return Value

true if a sorts before b by type and then by hash.

Parameters

NameDescription
aThe left-hand inventory entry.
bThe right-hand inventory entry.