33 return (weekend_mask_ & (1 << w)) != 0;
41 weekend_mask_ |= (1 << w);
bool isBusinessDay(const Date &) const override
Impl(std::string name="")
std::string name() const override
bool isWeekend(Weekday) const override
ext::shared_ptr< BespokeCalendar::Impl > bespokeImpl_
void addWeekend(Weekday)
marks the passed day as part of the weekend
BespokeCalendar(const std::string &name="")
bool isWeekend(Weekday w) const
std::string name() const
Returns the name of the calendar.
ext::shared_ptr< Impl > impl_