BloombergLP::bdlde::operator==

Return true if the specified lhs and rhs SHA digests have the same value.

Synopsis

Declared in <bdlde_sha2.h>

bool
operator==(
    Sha512 const& lhs,
    Sha512 const& rhs);

Description

Return true if the specified lhs and rhs SHA digests have the same value, and false otherwise. Two digests have the same value if, after applying any number of equivalent updates to both (possibly including no updates), the values obtained from their respective loadDigest methods are identical.

Return Value

true if lhs and rhs have the same value, and false otherwise

Parameters

NameDescription
lhsleft-hand-side SHA digest
rhsright-hand-side SHA digest