SysTutorials

Linux Manual Pages › Section 3

stdchronomonthok(3)

std::chrono::month::ok - std::chrono::month::ok

Synopsis

constexpr bool ok() const noexcept; (since C++20) Checks if the month value stored in *this is in the valid range, i.e., [1, 12].

Return value

true if the month value stored in *this is in the range [1, 12]. Otherwise false.