class
std::chrono::year
- Header
<chrono>- Draft
- [cal.year.overview]
- Scope
std::chrono- cppreference
- std::chrono::year
Synopsis
class year;Member functions
| Name | Declaration |
|---|---|
yearconstructor · 2 overloads | year() +1 more |
is_leapmember function | bool is_leap() const |
okmember function | bool ok() const |
operator+operator | year operator+() const |
operator++operator · 2 overloads | year& operator++() +1 more |
operator+=operator | year& operator+=(const years& y) |
operator-operator | year operator-() const |
operator--operator · 2 overloads | year& operator--() +1 more |
operator-=operator | year& operator-=(const years& y) |
operator intconversion function | operator int() const |