getNextBusinessDay overloads

Synopses

Declared in <bdlt_calendar.h>

Return the first business day following initialDate.

Date
getNextBusinessDay(Date const& initialDate) const;

Return the nth business day following initialDate.

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

Load the first business day after date into nextBusinessDay.

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

Load the nth business day after date into nextBusinessDay.

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

Return Value

  • the first business day following initialDate

  • the nth business day following initialDate

  • 0 on success, and a non‐zero value otherwise

Parameters

Name

Description

initialDate

date after which to find a business day

nth

one‐based count of business days to advance

nextBusinessDay

receives the next business day on success

date

date after which to find a business day

Created with MrDocs