Make those time_point conversions which can be noexcept, noexcept

This commit is contained in:
Howard Hinnant 2016-10-12 19:48:07 -04:00
parent 2c16e09438
commit b2b1d520c5
2 changed files with 18 additions and 18 deletions

View File

@ -637,30 +637,30 @@ template <class Duration>
to_utc_time(sys_time<Duration> t);
template <class Duration>
utc_time<common_type_t<Duration, seconds>>
to_utc_time(tai_time<Duration> t);
to_utc_time(tai_time<Duration> t) noexcept;
template <class Duration>
utc_time<common_type_t<Duration, seconds>>
to_utc_time(gps_time<Duration> t);
to_utc_time(gps_time<Duration> t) noexcept;
template <class Duration>
tai_time<common_type_t<Duration, seconds>>
to_tai_time(sys_time<Duration> t);
template <class Duration>
tai_time<common_type_t<Duration, seconds>>
to_tai_time(utc_time<Duration> t);
to_tai_time(utc_time<Duration> t) noexcept;
template <class Duration>
tai_time<common_type_t<Duration, seconds>>
to_tai_time(gps_time<Duration> t);
to_tai_time(gps_time<Duration> t) noexcept;
template <class Duration>
gps_time<common_type_t<Duration, seconds>>
to_gps_time(sys_time<Duration> t);
template <class Duration>
gps_time<common_type_t<Duration, seconds>>
to_gps_time(utc_time<Duration> t);
to_gps_time(utc_time<Duration> t) noexcept;
template <class Duration>
gps_time<common_type_t<Duration, seconds>>
to_gps_time(tai_time<Duration> t);
to_gps_time(tai_time<Duration> t) noexcept;
template <class charT, class traits, class Duration>
basic_ostream<charT, traits>&
@ -1639,7 +1639,7 @@ assert(u.time_since_epoch() - t.time_since_epoch() == 26s);
<pre>
template &lt;class Duration&gt;
utc_time&lt;common_type_t&lt;Duration, seconds&gt;&gt;
to_utc_time(tai_time&lt;Duration&gt; t);
to_utc_time(tai_time&lt;Duration&gt; t) noexcept;
</pre>
<blockquote>
<p>
@ -1653,7 +1653,7 @@ to_utc_time(tai_time&lt;Duration&gt; t);
<pre>
template &lt;class Duration&gt;
utc_time&lt;common_type_t&lt;Duration, seconds&gt;&gt;
to_utc_time(gps_time&lt;Duration&gt; t);
to_utc_time(gps_time&lt;Duration&gt; t) noexcept;
</pre>
<blockquote>
<p>
@ -1759,7 +1759,7 @@ to_tai_time(sys_time&lt;Duration&gt; t);
<pre>
template &lt;class Duration&gt;
tai_time&lt;common_type_t&lt;Duration, seconds&gt;&gt;
to_tai_time(utc_time&lt;Duration&gt; t);
to_tai_time(utc_time&lt;Duration&gt; t) noexcept;
</pre>
<blockquote>
<p>
@ -1773,7 +1773,7 @@ to_tai_time(utc_time&lt;Duration&gt; t);
<pre>
template &lt;class Duration&gt;
tai_time&lt;common_type_t&lt;Duration, seconds&gt;&gt;
to_tai_time(gps_time&lt;Duration&gt; t);
to_tai_time(gps_time&lt;Duration&gt; t) noexcept;
</pre>
<blockquote>
<p>
@ -1858,7 +1858,7 @@ to_gps_time(sys_time&lt;Duration&gt; t);
<pre>
template &lt;class Duration&gt;
gps_time&lt;common_type_t&lt;Duration, seconds&gt;&gt;
to_gps_time(utc_time&lt;Duration&gt; t);
to_gps_time(utc_time&lt;Duration&gt; t) noexcept;
</pre>
<blockquote>
<p>
@ -1872,7 +1872,7 @@ to_gps_time(utc_time&lt;Duration&gt; t);
<pre>
template &lt;class Duration&gt;
gps_time&lt;common_type_t&lt;Duration, seconds&gt;&gt;
to_gps_time(tai_time&lt;Duration&gt; t);
to_gps_time(tai_time&lt;Duration&gt; t) noexcept;
</pre>
<blockquote>
<p>

12
tz.html
View File

@ -2402,7 +2402,7 @@ second insertion), then the conversion counts that leap second as inserted.
<pre>
template &lt;class Duration&gt;
utc_time&lt;std::common_type_t&lt;Duration, std::chrono::seconds&gt;&gt;
to_utc_time(tai_time&lt;Duration&gt; t)
to_utc_time(tai_time&lt;Duration&gt; t) noexcept
</pre>
<blockquote>
<p>
@ -2416,7 +2416,7 @@ to_utc_time(tai_time&lt;Duration&gt; t)
<pre>
template &lt;class Duration&gt;
utc_time&lt;std::common_type_t&lt;Duration, std::chrono::seconds&gt;&gt;
to_utc_time(gps_time&lt;Duration&gt; t)
to_utc_time(gps_time&lt;Duration&gt; t) noexcept
</pre>
<blockquote>
<p>
@ -2508,7 +2508,7 @@ to_tai_time(sys_time&lt;Duration&gt; t)
<pre>
template &lt;class Duration&gt;
tai_time&lt;std::common_type_t&lt;Duration, std::chrono::seconds&gt;&gt;
to_tai_time(utc_time&lt;Duration&gt; u)
to_tai_time(utc_time&lt;Duration&gt; u) noexcept
</pre>
<blockquote>
<p>
@ -2522,7 +2522,7 @@ to_tai_time(utc_time&lt;Duration&gt; u)
<pre>
template &lt;class Duration&gt;
tai_time&lt;typename std::common_type&lt;Duration, std::chrono::seconds&gt;::type&gt;
to_tai_time(gps_time&lt;Duration&gt; t)
to_tai_time(gps_time&lt;Duration&gt; t) noexcept
</pre>
<blockquote>
<p>
@ -2618,7 +2618,7 @@ to_gps_time(sys_time&lt;Duration&gt; t)
<pre>
template &lt;class Duration&gt;
gps_time&lt;std::common_type_t&lt;Duration, std::chrono::seconds&gt;&gt;
to_gps_time(utc_time&lt;Duration&gt; u)
to_gps_time(utc_time&lt;Duration&gt; u) noexcept
</pre>
<blockquote>
<p>
@ -2632,7 +2632,7 @@ to_gps_time(utc_time&lt;Duration&gt; u)
<pre>
template &lt;class Duration&gt;
gps_time&lt;typename std::common_type&lt;Duration, std::chrono::seconds&gt;::type&gt;
to_gps_time(tai_time&lt;Duration&gt; t)
to_gps_time(tai_time&lt;Duration&gt; t) noexcept
</pre>
<blockquote>
<p>