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

Synopsis

Declared in <bdlt_packedcalendar.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 providing non‐modifiable access to the latest date

Created with MrDocs