Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit b5267c6e8a.
PrevUpHomeNext
date::date (2 of 4 overloads)

Constructs a date from its year, month and date components.

Synopsis
constexpr
date(
    std::uint16_t year,
    std::uint8_t month,
    std::uint8_t day) noexcept;
Description

Component values that yield invalid dates (like zero or out-of-range values) are allowed, resulting in an object with this->valid() == false.

Exception safety

No-throw guarantee.


PrevUpHomeNext