Less‐than operators

Synopses

Declared in <bdlt_date.h>

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

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

Return true if lhs is less than rhs.

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

Return true if the specified lhs interval is less than rhs.

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

Return true if lhs is earlier than rhs.

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

Return true if lhs daily timetable is less than rhs.

bool
operator<(
    Timetable_Day const& lhs,
    Timetable_Day const& rhs);

Return true if timetable transition lhs is less than rhs.

bool
operator<(
    TimetableTransition const& lhs,
    TimetableTransition const& rhs);

Return true if timetable transition lhs is less than datetime rhs.

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

Return true if datetime lhs is less than timetable transition rhs.

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

Return true if compactable transition lhs is less than rhs.

Return true if compactable transition lhs is less than time rhs.

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

Return true if time lhs is less than compactable transition rhs.

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

Return Value

  • true if lhs is earlier than rhs

  • true if lhs is less than rhs

  • true if lhs is less than rhs, and false otherwise

  • true if lhs is earlier than rhs, and false otherwise

Parameters

Name

Description

lhs

left‐hand date operand

rhs

right‐hand date operand

Created with MrDocs