BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlt::DayOfWeekUtil Struct Reference

#include <bdlt_dayofweekutil.h>

Static Public Member Functions

static BSLS_CPP11_CONSTEXPR DayOfWeek::Enum add (DayOfWeek::Enum dayOfWeek, int numDays)
 

Detailed Description

This struct provides a namespace for common non-primitive procedures that operate on bdlt::DayOfWeek::Enum values.

Member Function Documentation

◆ add()

BSLS_CPP11_CONSTEXPR DayOfWeek::Enum bdlt::DayOfWeekUtil::add ( DayOfWeek::Enum  dayOfWeek,
int  numDays 
)
inlinestatic

Return the DayOfWeek::Enum value that is the specified (signed) numDays from the specified dayOfWeek. Note that DayOfWeek::Enum is closed under this operation (in the expected manner). For example, the following hold true:

static BSLS_CPP11_CONSTEXPR DayOfWeek::Enum add(DayOfWeek::Enum dayOfWeek, int numDays)
Definition bdlt_dayofweekutil.h:139
@ e_SUN
Definition bdlt_dayofweek.h:125
@ e_MON
Definition bdlt_dayofweek.h:126
@ e_SAT
Definition bdlt_dayofweek.h:131

The documentation for this struct was generated from the following file: