forked from HowardHinnant/date
Update weekday spec with:
* c_encoding * iso_encoding
This commit is contained in:
25
date.html
25
date.html
@@ -26,7 +26,7 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="mailto:howard.hinnant@gmail.com">Howard E. Hinnant</a><br/>
|
<a href="mailto:howard.hinnant@gmail.com">Howard E. Hinnant</a><br/>
|
||||||
2019-12-31<br/>
|
2023-05-29<br/>
|
||||||
</address>
|
</address>
|
||||||
<hr/>
|
<hr/>
|
||||||
<h1 align=center><code>date</code></h1>
|
<h1 align=center><code>date</code></h1>
|
||||||
@@ -3236,7 +3236,10 @@ public:
|
|||||||
constexpr weekday& operator+=(const days& d) noexcept;
|
constexpr weekday& operator+=(const days& d) noexcept;
|
||||||
constexpr weekday& operator-=(const days& d) noexcept;
|
constexpr weekday& operator-=(const days& d) noexcept;
|
||||||
|
|
||||||
|
constexpr unsigned c_encoding() const noexcept;
|
||||||
|
constexpr unsigned iso_encoding() const noexcept;
|
||||||
constexpr bool ok() const noexcept;
|
constexpr bool ok() const noexcept;
|
||||||
|
|
||||||
constexpr weekday_indexed operator[](unsigned index) const noexcept;
|
constexpr weekday_indexed operator[](unsigned index) const noexcept;
|
||||||
constexpr weekday_last operator[](last_spec) const noexcept;
|
constexpr weekday_last operator[](last_spec) const noexcept;
|
||||||
};
|
};
|
||||||
@@ -3441,6 +3444,26 @@ constexpr weekday& weekday::operator-=(const days& d) noexcept;
|
|||||||
</p>
|
</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
constexpr unsigned c_encoding() const noexcept;
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>
|
||||||
|
<i>Returns:</i> <code>wd_</code>.
|
||||||
|
</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
constexpr unsigned iso_encoding() const noexcept;
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<blockquote>
|
||||||
|
<p>
|
||||||
|
<i>Returns:</i> <code>wd_ == 0u ? 7u : wd_</code>.
|
||||||
|
</p>
|
||||||
|
</blockquote>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
constexpr bool weekday::ok() const noexcept;
|
constexpr bool weekday::ok() const noexcept;
|
||||||
</pre>
|
</pre>
|
||||||
|
Reference in New Issue
Block a user