From Jason Turner

[time.cal.wdidx.nonmembers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp04u2u27d/{from.md → to.md} +24 -0
tmp/tmp04u2u27d/{from.md → to.md} RENAMED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Non-member functions <a id="time.cal.wdidx.nonmembers">[[time.cal.wdidx.nonmembers]]</a>
2
+
3
+ ``` cpp
4
+ constexpr bool operator==(const weekday_indexed& x, const weekday_indexed& y) noexcept;
5
+ ```
6
+
7
+ *Returns:* `x.weekday() == y.weekday() && x.index() == y.index()`.
8
+
9
+ ``` cpp
10
+ template<class charT, class traits>
11
+ basic_ostream<charT, traits>&
12
+ operator<<(basic_ostream<charT, traits>& os, const weekday_indexed& wdi);
13
+ ```
14
+
15
+ *Effects:* Equivalent to:
16
+
17
+ ``` cpp
18
+ auto i = wdi.index();
19
+ return os << (i >= 1 && i <= 5 ?
20
+ format(os.getloc(), STATICALLY-WIDEN<charT>("{}[{}]"), wdi.weekday(), i) :
21
+ format(os.getloc(), STATICALLY-WIDEN<charT>("{}[{} is not a valid index]"),
22
+ wdi.weekday(), i));
23
+ ```
24
+