Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

bool QuantLib::Calendar::isBusinessDay ( const Date d  )  const [inline, inherited]

Returns true iff the date is a business day for the given market.

Definition at line 174 of file calendar.hpp.

Referenced by QuantLib::Calendar::isHoliday().

                                                           {
        if (impl_->addedHolidays.find(d) != impl_->addedHolidays.end())
            return false;
        if (impl_->removedHolidays.find(d) != impl_->removedHolidays.end())
            return true;
        return impl_->isBusinessDay(d);
    }


Generated by  Doxygen 1.6.0   Back to index