getNextBusinessDay overloads

Synopses

Declared in <bdlt_calendar.h>

Return the date of the first business day following the specified initialDate. For dates outside of the range of this calendar, only weekend days are considered non‐business days. The behavior is undefined if every day of the week is a weekend day, or if the resulting date would otherwise exceed the value Date(9999, 12, 31).

Date
getNextBusinessDay(Date const& initialDate) const;

Return the date of the specified nth business day following the specified initialDate. For dates outside of the range of this calendar, only weekend days are considered non‐business days. The behavior is undefined unless initialDate is within the valid range and 1 <= nth (or if every day of the week is a weekend day, or if the resulting date would otherwise exceed the value Date(9999, 12, 31)).

Date
getNextBusinessDay(
    Date const& initialDate,
    int nth) const;

Load, into the specified nextBusinessDay, the date of the first business day in this calendar following the specified date. Return 0 on success ‐‐ i.e., if such a business day exists, and a non‐zero value (with no effect on nextBusinessDay) otherwise. The behavior is undefined unless date + 1 is both a valid bdlt::Date and within the valid range of this calendar.

int
getNextBusinessDay(
    Date* nextBusinessDay,
    Date const& date) const;

Load, into the specified nextBusinessDay, the date of the specified nth business day in this calendar following the specified date. Return 0 on success ‐‐ i.e., if such a business day exists, and a non‐zero value (with no effect on nextBusinessDay) otherwise. The behavior is undefined unless date + 1 is both a valid bdlt::Date and within the valid range of this calendar, and 0 < nth.

int
getNextBusinessDay(
    Date* nextBusinessDay,
    Date const& date,
    int nth) const;

Created with MrDocs