Return the latest date in the valid range of this calendar.

Synopsis

Declared in <bdlt_calendar.h>

Date const&
lastDate() const;

Description

Return a reference providing non‐modifiable access to the latest date in the valid range of this calendar. The behavior is undefined unless this calendar is non‐empty ‐‐ i.e., unless 1 <= length().

Return Value

a reference to the latest date in the valid range

Created with MrDocs