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.
Return true if the value of the specified lhs object is less than the value of the specified rhs object, and false otherwise. A Datetime object a is less than a Datetime object b if a.date() < b.date(), or if a.date() == b.date() and the time portion of a is less than the time portion of b. The behavior is undefined unless 24 != lhs.hour() && 24 != rhs.hour().
Return true if the nominal relation between the specified lhs and rhs time interval values holds, and false otherwise. lhs is less than rhs if the following expression evaluates to true: ` lhs.days() < rhs.days() || (lhs.days() == rhs.days() && lhs.fractionalDayInMicroseconds() < rhs.fractionalDayInMicroseconds()) ` The other relationships are defined similarly.
bool
operator<(
DatetimeInterval const& lhs,
DatetimeInterval const& rhs);
Return true if the specified lhs time value is less than 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).
Return true if the specified lhs daily timetable is less than the specified rhs daily timetable, and false otherwise. The lhs daily timetable is less than the rhs daily timetable if lhs.initialTransitionCode() < rhs.initialTransitionCode(), or lhs.initialTransitionCode() == rhs.initialTransitionCode() and lhs.d_transitions < rhs.d_transitions.
bool
operator<(
Timetable_Day const& lhs,
Timetable_Day const& rhs);
Return true if the specified lhs has a value less than the specified rhs, and false otherwise. Timetable transition lhs has a value less than timetable transition rhs if lhs.datetime() < rhs.datetime(), or lhs.datetime() == rhs.datetime() and lhs.code() < rhs.code().
bool
operator<(
TimetableTransition const& lhs,
TimetableTransition const& rhs);
Return true if the specified lhs has a value less than the specified rhs, and false otherwise. Timetable transition lhs has a value less than datetime rhs if lhs.datetime() < rhs. The behavior is undefined unless 24 > rhs.hour().
bool
operator<(
TimetableTransition const& lhs,
Datetime const& rhs);
Return true if the specified lhs has a value less than the specified rhs, and false otherwise. Datetime lhs has a value less than timetable transition rhs if lhs < rhs.datetime(). The behavior is undefined unless 24 > lhs.hour().
bool
operator<(
Datetime const& lhs,
TimetableTransition const& rhs);
Return true if the specified lhs has a value less than the specified rhs, and false otherwise. Compactable transition lhs has a value less than compactable transition rhs if lhs.time() < rhs.time(), or lhs.time() == rhs.time() and lhs.code() < rhs.code().
bool
operator<(
Timetable_CompactableTransition const& lhs,
Timetable_CompactableTransition const& rhs);
Return true if the specified lhs has a value less than the specified rhs, and false otherwise. Compactable transition lhs has a value less than time rhs if lhs.time() < rhs. The behavior is undefined unless 24 > rhs.hour().
bool
operator<(
Timetable_CompactableTransition const& lhs,
Time const& rhs);
Return true if the specified lhs has a value less than the specified rhs, and false otherwise. Time lhs has a value less than compactable transition rhs if lhs < rhs.time(). The behavior is undefined unless 24 > lhs.hour().
bool
operator<(
Time const& lhs,
Timetable_CompactableTransition const& rhs);
Created with MrDocs