BloombergLP::bdlt::operator==

Return true if the two dates have the same value.

Synopsis

Declared in <bdlt_date.h>

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

Description

Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two Date objects have the same value if each of their year, month, and day attributes (respectively) have the same value.

Return Value

true if the two dates have the same value

Parameters

NameDescription
lhsleft-hand date operand
rhsright-hand date operand