Shift original to the next valid business day (following).
Declared in <bdlt_calendarutil.h>
static
int
shiftFollowingIfValid(
bdlt::Date* result,
bdlt::Date const& original,
bdlt::Calendar const& calendar);
Load, into the specified result, the date of the chronologically earliest business day that is on or after the specified original date based on the specified calendar. Return 0 on success, and a non-zero value, without modifying *result, if the original date is not within the valid range of calendar or the following business day cannot be found within the valid range of calendar.
0 on success, non-zero on failure
| Name | Description |
|---|---|
| result | destination for the shifted date |
| original | starting date |
| calendar | calendar used for business-day determination |