Less‐than‐or‐equal operators

Synopses

Declared in <bdlt_date.h>

Return true if the specified lhs date is earlier than or the same as the specified rhs date, and false otherwise.

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

Return true if the value of the specified lhs object is less than or equal to the value of the specified rhs object, and false otherwise. The behavior is undefined unless 24 != lhs.hour() && 24 != rhs.hour().

bool
operator<=(
    Datetime const& lhs,
    Datetime const& rhs);

Return true if the specified lhs interval is less than or equal to the specified rhs interval, and false otherwise.

bool
operator<=(
    DatetimeInterval const& lhs,
    DatetimeInterval const& rhs);

Return true if the specified lhs time value is less than or equal to the specified rhs time value, and false otherwise. The behavior is undefined unless lhs != Time() and rhs != Time() (i.e., they do not have the, default, value 24:00:00.000000).

bool
operator<=(
    Time const& lhs,
    Time const& rhs);

Created with MrDocs