From Jason Turner

[time.cal.month.overview]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpbmtripe5/{from.md → to.md} +35 -0
tmp/tmpbmtripe5/{from.md → to.md} RENAMED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Overview <a id="time.cal.month.overview">[[time.cal.month.overview]]</a>
2
+
3
+ ``` cpp
4
+ namespace std::chrono {
5
+ class month {
6
+ unsigned char m_; // exposition only
7
+ public:
8
+ month() = default;
9
+ constexpr explicit month(unsigned m) noexcept;
10
+
11
+ constexpr month& operator++() noexcept;
12
+ constexpr month operator++(int) noexcept;
13
+ constexpr month& operator--() noexcept;
14
+ constexpr month operator--(int) noexcept;
15
+
16
+ constexpr month& operator+=(const months& m) noexcept;
17
+ constexpr month& operator-=(const months& m) noexcept;
18
+
19
+ constexpr explicit operator unsigned() const noexcept;
20
+ constexpr bool ok() const noexcept;
21
+ };
22
+ }
23
+ ```
24
+
25
+ `month` represents a month of a year. It normally holds values in the
26
+ range 1 to 12, but may hold non-negative values outside this range. It
27
+ can be constructed with any `unsigned` value, which will be subsequently
28
+ truncated to fit into `month`’s unspecified internal storage. `month`
29
+ meets the *Cpp17EqualityComparable* ([[cpp17.equalitycomparable]]) and
30
+ *Cpp17LessThanComparable* ([[cpp17.lessthancomparable]]) requirements,
31
+ and participates in basic arithmetic with `months` objects, which
32
+ represent a difference between two `month` objects.
33
+
34
+ `month` is a trivially copyable and standard-layout class type.
35
+