Load the nth business day after date into nextBusinessDay.

Synopsis

Declared in <bdlt_calendar.h>

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

Description

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.

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

nextBusinessDay

receives the requested business day on success

date

date after which to count business days

nth

one‐based count of business days to advance

Created with MrDocs