std::chrono::month
Von cppreference.com
| Definiert in Header <chrono> |
||
| class month; |
(seit C++20) | |
| inline constexpr std::chrono::month January{1}; |
(seit C++20) | |
| inline constexpr std::chrono::month February{2}; |
(seit C++20) | |
| inline constexpr std::chrono::month March{3}; |
(seit C++20) | |
| inline constexpr std::chrono::month April{4}; |
(seit C++20) | |
| inline constexpr std::chrono::month May{5}; |
(seit C++20) | |
| inline constexpr std::chrono::month June{6}; |
(seit C++20) | |
| inline constexpr std::chrono::month July{7}; |
(seit C++20) | |
| inline constexpr std::chrono::month August{8}; |
(seit C++20) | |
| inline constexpr std::chrono::month September{9}; |
(seit C++20) | |
| inline constexpr std::chrono::month October{10}; |
(seit C++20) | |
| inline constexpr std::chrono::month November{11}; |
(seit C++20) | |
| inline constexpr std::chrono::month December{12}; |
(seit C++20) | |
Die Klasse month repräsentiert einen Monat in einem Jahr. Ihr normaler Wertebereich ist [1, 12], sie kann aber jede Zahl in [0, 255] enthalten. Zwölf benannte Konstanten sind im Namespace std::chrono für die zwölf Monate des Jahres vordefiniert.
month ist ein TriviallyCopyable StandardLayoutType.
[bearbeiten] Member functions
konstruiert ein month(public member function) | |
| inkrementiert oder dekrementiert den Monat (public member function) | |
| addiert oder subtrahiert eine Anzahl von Monaten (public member function) | |
| ruft den gespeicherten Monatswert ab (public member function) | |
| prüft, ob der gespeicherte Monatswert im normalen Bereich liegt (public member function) |
[bearbeiten] Nonmember functions
| (C++20) |
vergleicht zwei month-Werte(function) |
| (C++20) |
führt Arithmetik mit months durch(Funktion) |
| (C++20) |
gibt einen month in einen Stream aus(function template) |
| (C++20) |
parst einen month aus einem Stream gemäß dem angegebenen Format(Funktionstemplate) |
[bearbeiten] Helper classes
Formatierungsunterstützung für month(Klassentemplate-Spezialisierung) | |
| Hash-Unterstützung für std::chrono::month (Klassentemplate-Spezialisierung) |