diff --git a/d0355r3.html b/d0355r3.html index df2096a..cc2f2dc 100644 --- a/d0355r3.html +++ b/d0355r3.html @@ -814,12 +814,12 @@ template <class charT, class traits, class Rep, class Period> const duration<Rep, Period>& d); template <class charT, class traits, class Rep, class Period> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const duration<Rep, Period>& d); template <class Rep, class Period, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, duration<Rep, Period>& d, basic_string<charT, traits, Alloc>* abbrev = nullptr, @@ -967,63 +967,63 @@ template <class charT, class traits, class Duration> // to_stream template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const sys_time<Duration>& tp); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const local_time<Duration>& tp, const string* abbrev = nullptr, const seconds* offset_sec = nullptr); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const utc_time<Duration>& tp); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const tai_time<Duration>& tp); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const gps_time<Duration>& tp); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const file_time<Duration>& tp); // from_stream template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, sys_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, local_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, utc_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, tai_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, gps_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, file_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -1051,11 +1051,11 @@ template<class charT, class traits> operator<<(basic_ostream<class charT, class traits>& os, const day& d); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const day& d); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, day& d, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -1079,11 +1079,11 @@ template<class charT, class traits> operator<<(basic_ostream<class charT, class traits>& os, const month& m); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month& m); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, month& m, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -1107,11 +1107,11 @@ template<class charT, class traits> operator<<(basic_ostream<class charT, class traits>& os, const year& y); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year& y); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year& y, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -1131,11 +1131,11 @@ template<class charT, class traits> operator<<(basic_ostream<class charT, class traits>& os, const weekday& wd); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const weekday& wd); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, weekday& wd, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -1172,11 +1172,11 @@ template<class charT, class traits> operator<<(basic_ostream<class charT, class traits>& os, const month_day& md); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month_day& md); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, month_day& md, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -1234,11 +1234,11 @@ template<class charT, class traits> operator<<(basic_ostream<class charT, class traits>& os, const year_month& ym); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year_month& ym); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year_month& ym, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -1264,11 +1264,11 @@ template<class charT, class traits> operator<<(basic_ostream<class charT, class traits>& os, const year_month_day& ymd); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year_month_day& ymd); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year_month_day& ymd, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -1449,7 +1449,7 @@ template <class Duration> operator<<(basic_ostream<class charT, class traits>& os, const zoned_time<Duration>& t); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const zoned_time<Duration>& tp); // format @@ -1673,7 +1673,7 @@ is encouraged. The implementation may substitute other encodings, including
 template <class charT, class traits, class Rep, class Period>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt,
           const duration<Rep, Period>& d);
 
@@ -1684,11 +1684,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, the null-terminated array fmt. fmt encoding follows the rules specified by [time.format].

+

+Returns: os. +

 template <class Rep, class Period, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             duration<Rep, Period>& d,
             basic_string<charT, traits, Alloc>* abbrev = nullptr,
@@ -1712,6 +1715,9 @@ If %Z is used and successfully parsed, that value will be assigned
 If %z (or a modified variant) is used and successfully parsed, that value
 will be assigned to *offset if offset is non-null.
 

+

+Returns: is. +

@@ -2033,7 +2039,7 @@ os << year_month_day{dp};
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const sys_time<Duration>& tp);
 
@@ -2045,11 +2051,14 @@ specified by [time.format]. If %Z is used, it will be replaced wit "UTC". If %z is used (or a modified form of %z), an offset of 0min will be formatted.

+

+Returns: os. +

 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             sys_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -2073,6 +2082,9 @@ will be assigned to *offset if offset is non-null.
 Additionally, the parsed offset will be subtracted from the successfully parsed time stamp
 prior to assigning that difference to tp.
 

+

+Returns: is. +

@@ -2228,7 +2240,7 @@ operator<<(basic_ostream<charT, traits>& os, const utc_time<D
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const utc_time<Duration>& tp);
 
@@ -2274,7 +2286,7 @@ Output:
 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             utc_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -2298,6 +2310,9 @@ will be assigned to *offset if offset is non-null.
 Additionally, the parsed offset will be subtracted from the successfully parsed time stamp
 prior to assigning that difference to tp.
 

+

+Returns: is. +

@@ -2418,7 +2433,7 @@ operator<<(basic_ostream<charT, traits>& os, const tai_time<D
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const tai_time<Duration>& tp);
 
@@ -2458,7 +2473,7 @@ Output:
 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             tai_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -2482,6 +2497,9 @@ will be assigned to *offset if offset is non-null.
 Additionally, the parsed offset will be subtracted from the successfully parsed time stamp
 prior to assigning that difference to tp.
 

+

+Returns: is. +

@@ -2603,7 +2621,7 @@ operator<<(basic_ostream<charT, traits>& os, const gps_time<D
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const gps_time<Duration>& tp);
 
@@ -2643,7 +2661,7 @@ Output:
 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             gps_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -2667,6 +2685,9 @@ will be assigned to *offset if offset is non-null.
 Additionally, the parsed offset will be subtracted from the successfully parsed time stamp
 prior to assigning that difference to tp.
 

+

+Returns: is. +

@@ -2766,7 +2787,7 @@ operator<<(basic_ostream<charT, traits>& os, const file_time<
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const file_time<Duration>& tp);
 
@@ -2786,7 +2807,7 @@ equivalent to that formatted by a sys_time initialized with t
 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             file_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -2810,6 +2831,9 @@ will be assigned to *offset if offset is non-null.
 Additionally, the parsed offset will be subtracted from the successfully parsed time stamp
 prior to assigning that difference to tp.
 

+

+Returns: is. +

@@ -2854,7 +2878,7 @@ os << sys_time<Duration>{lt.time_since_epoch()};
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const local_time<Duration>& tp,
           const string* abbrev = nullptr, const seconds* offset_sec = nullptr);
 
@@ -2872,11 +2896,14 @@ specified by [time.format]. If %Z is used, it will be replaced wit (or a modified form of %z) is used, and offset_sec is equal to nullptr, then failbit is set.

+

+Returns: os. +

 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             local_time<Duration>& tp, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -2898,6 +2925,9 @@ If %Z is used and successfully parsed, that value will be assigned
 If %z (or a modified variant) is used and successfully parsed, that value
 will be assigned to *offset if offset is non-null. 
 

+

+Returns: is. +

@@ -3743,11 +3773,11 @@ basic_ostream<charT, traits>& operator<<(basic_ostream<charT, traits>& os, const day& d); template <class charT, class traits, class Duration> -void +basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const day& d); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> -void +basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, day& d, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -3987,7 +4017,7 @@ operator<<(basic_ostream<charT, traits>& os, const day& d);
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const day& d);
 
@@ -3997,11 +4027,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const da the null-terminated array fmt. fmt encoding follows the rules specified by [time.format].

+

+Returns: os. +

 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             day& d, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -4023,6 +4056,9 @@ If %Z is used and successfully parsed, that value will be assigned
 If %z (or a modified variant) is used and successfully parsed, that value
 will be assigned to *offset if offset is non-null.
 

+

+Returns: is. +

@@ -4087,11 +4123,11 @@ template <class charT, class traits>
     operator<<(basic_ostream<charT, traits>& os, const month& m);
 
 template <class charT, class traits, class Duration>
-    void
+    basic_ostream<charT, traits>&
     to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month& m);
 
 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-    void
+    basic_istream<charT, traits>&
     from_stream(basic_istream<charT, traits>& is, const charT* fmt,
                 month& m, basic_string<charT, traits, Alloc>* abbrev = nullptr,
                 minutes* offset = nullptr);
@@ -4358,7 +4394,7 @@ output for the month field by asctime.  Otherwise outputs
 
 
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month& m);
 
@@ -4368,11 +4404,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const mo the null-terminated array fmt. fmt encoding follows the rules specified by [time.format].

+

+Returns: os. +

 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             month& m, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -4394,6 +4433,9 @@ If %Z is used and successfully parsed, that value will be assigned
 If %z (or a modified variant) is used and successfully parsed, that value
 will be assigned to *offset if offset is non-null.
 

+

+Returns: is. +

23.17.10.4 Class year [time.calendar.year]

@@ -4454,11 +4496,11 @@ template <class charT, class traits> operator<<(basic_ostream<charT, traits>& os, const year& y); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year& y); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year& y, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -4750,7 +4792,7 @@ into os. If the year is in the range [-999, 999], prefixes the year
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year& y);
 
@@ -4760,11 +4802,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ye the null-terminated array fmt. fmt encoding follows the rules specified by [time.format].

+

+Returns: os. +

 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             year& y, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -4786,6 +4831,9 @@ If %Z is used and successfully parsed, that value will be assigned
 If %z (or a modified variant) is used and successfully parsed, that value
 will be assigned to *offset if offset is non-null.
 

+

+Returns: is. +

@@ -4867,11 +4915,11 @@ template <class charT, class traits>
     operator<<(basic_ostream<charT, traits>& os, const weekday& wd);
 
 template <class charT, class traits, class Duration>
-    void
+    basic_ostream<charT, traits>&
     to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const weekday& wd);
 
 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-    void
+    basic_istream<charT, traits>&
     from_stream(basic_istream<charT, traits>& is, const charT* fmt,
                 weekday& wd, basic_string<charT, traits, Alloc>* abbrev = nullptr,
                 minutes* offset = nullptr);
@@ -5150,7 +5198,7 @@ output for the weekday field by asctime.  Otherwise outputs
 
 
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const weekday& wd);
 
@@ -5160,11 +5208,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const we the null-terminated array fmt. fmt encoding follows the rules specified by [time.format].

+

+Returns: os. +

 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             weekday& wd, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -5186,6 +5237,9 @@ If %Z is used and successfully parsed, that value will be assigned
 If %z (or a modified variant) is used and successfully parsed, that value
 will be assigned to *offset if offset is non-null.
 

+

+Returns: is. +

23.17.10.6 Class weekday_indexed [time.calendar.weekday_indexed]

@@ -5460,11 +5514,11 @@ template <class charT, class traits> operator<<(basic_ostream<charT, traits>& os, const month_day& md); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month_day& md); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, month_day& md, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -5598,7 +5652,7 @@ return os << md.month() << '/' << md.day();
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const month_day& md);
 
@@ -5608,11 +5662,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const mo the null-terminated array fmt. fmt encoding follows the rules specified by [time.format].

+

+Returns: os. +

 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             month_day& md, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -5634,6 +5691,9 @@ If %Z is used and successfully parsed, that value will be assigned
 If %z (or a modified variant) is used and successfully parsed, that value
 will be assigned to *offset if offset is non-null.
 

+

+Returns: is. +

23.17.10.9 Class month_day_last [time.calendar.month_day_last]

@@ -6066,11 +6126,11 @@ template <class charT, class traits> operator<<(basic_ostream<charT, traits>& os, const year_month& ym); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year_month& ym); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year_month& ym, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -6328,7 +6388,7 @@ return os << ym.year() << '/' << ym.month();
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year_month& ym);
 
@@ -6338,11 +6398,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ye the null-terminated array fmt. fmt encoding follows the rules specified by [time.format].

+

+Returns: os. +

 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             year_month& ym, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -6364,6 +6427,9 @@ If %Z is used and successfully parsed, that value will be assigned
 If %z (or a modified variant) is used and successfully parsed, that value
 will be assigned to *offset if offset is non-null.
 

+

+Returns: is. +

23.17.10.13 Class year_month_day [time.calendar.year_month_day]

@@ -6426,11 +6492,11 @@ template <class charT, class traits> operator<<(basic_ostream<charT, traits>& os, const year_month_day& ymd); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year_month_day& ymd); template <class Duration, class charT, class traits, class Alloc = allocator<charT>> - void + basic_istream<charT, traits>& from_stream(basic_istream<charT, traits>& is, const charT* fmt, year_month_day& ymd, basic_string<charT, traits, Alloc>* abbrev = nullptr, minutes* offset = nullptr); @@ -6786,7 +6852,7 @@ are prefixed with '0' if necessary.
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const year_month_day& ymd);
 
@@ -6796,11 +6862,14 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const ye the null-terminated array fmt. fmt encoding follows the rules specified by [time.format].

+

+Returns: os. +

 template <class Duration, class charT, class traits, class Alloc = allocator<charT>>
-void
+basic_istream<charT, traits>&
 from_stream(basic_istream<charT, traits>& is, const charT* fmt,
             year_month_day& ymd, basic_string<charT, traits, Alloc>* abbrev = nullptr,
             minutes* offset = nullptr);
@@ -6822,6 +6891,9 @@ If %Z is used and successfully parsed, that value will be assigned
 If %z (or a modified variant) is used and successfully parsed, that value
 will be assigned to *offset if offset is non-null.
 

+

+Returns: is. +

23.17.10.14 Class year_month_day_last [time.calendar.year_month_day_last]

@@ -9537,7 +9609,7 @@ template <class Duration> operator<<(basic_ostream<class charT, class traits>& os, const zoned_time<Duration>& t); template <class charT, class traits, class Duration> - void + basic_ostream<charT, traits>& to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const zoned_time<Duration>& tp);
@@ -9860,7 +9932,7 @@ and the value returned from t.get_local_time().
 template <class charT, class traits, class Duration>
-void
+basic_ostream<charT, traits>&
 to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const zoned_time<Duration>& tp);
 
@@ -9870,6 +9942,9 @@ to_stream(basic_ostream<charT, traits>& os, const charT* fmt, const zo which for exposition purposes will be referred to as info. Then calls to_stream(os, fmt, tp.get_local_time(), &info.abbrev, &info.offset).

+

+Returns: os. +

diff --git a/date.html b/date.html index db6c664..b246235 100644 --- a/date.html +++ b/date.html @@ -1679,7 +1679,7 @@ using months = std::chrono::duration
 template <class CharT, class Traits, class Rep, class Period>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
           const std::chrono::duration<Rep, Period>& d);
 
@@ -1695,11 +1695,14 @@ is undefined except for the following flags (or modified versions of these flags %R, %S, %T, %X, %n, %t or %%.

+

+Returns: os. +

 template <class Rep, class Period, class CharT, class Traits, class Alloc = std::allocator<CharT>>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
             std::chrono::duration<Rep, Period>& d,
             std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
@@ -1720,6 +1723,9 @@ flags): %H, %I, %M, %p,
 offset is not equal to nullptr, the information parsed by
 %z (if present) will be placed in *offset.
 

+

+Returns: is. +

@@ -1835,7 +1841,7 @@ using sys_seconds = sys_time<std::chrono::seconds>;
 
 
 template <class CharT, class Traits, class Duration>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
           const sys_time<Duration>& tp);
 
@@ -1849,11 +1855,14 @@ string fmt as specified by the %Z is in the formatting string "UTC" will be used. If %z is in the formatting string "+0000" will be used.

+

+Returns: os. +

 template <class Duration, class CharT, class Traits, class Alloc = std::allocator<CharT>>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
             sys_time<Duration>& tp, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -1872,6 +1881,9 @@ If abbrev is not equal to nullptr, the information par
 is parsed, or a time of day which is outside of the conventional bounds, failbit
 will be set and tp will not be altered.
 

+

+Returns: is. +

local_time

@@ -1930,7 +1942,7 @@ using local_seconds = local_time<std::chrono::seconds>;
 template <class CharT, class Traits, class Duration>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
           const local_time<Duration>& tp, const std::string* abbrev = nullptr,
           const std::chrono::seconds* offset_sec = nullptr);
@@ -1951,11 +1963,15 @@ If %Z is in the formatting string and abbrev == nullptr%z is in the formatting string and offset_sec == nullptr,
 failbit will be set for os.
 

+ +

+Returns: os. +

 template <class Duration, class CharT, class Traits, class Alloc = std::allocator<CharT>>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
             local_time<Duration>& tp, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -1973,6 +1989,9 @@ If abbrev is not equal to nullptr, the information par
 is parsed, or a time of day which is outside of the conventional bounds, failbit
 will be set and tp will not be altered.
 

+

+Returns: is. +

last_spec

@@ -2038,12 +2057,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const day& d); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const day& d); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, day& d, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -2313,7 +2332,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, co
 template<class CharT, class Traits>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt,
           const day& d);
 
@@ -2327,11 +2346,14 @@ is undefined except for the following flags (or modified versions of these flags %d, %e, %n, %t or %%.

+

+Returns: os. +

 template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, day& d,
             std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -2350,6 +2372,9 @@ flags): %e, %e, %n,
 offset is not equal to nullptr, the information parsed by
 %z (if present) will be placed in *offset.
 

+

+Returns: is. +

@@ -2396,12 +2421,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const month& m); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const month& m); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, month& m, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -2699,7 +2724,7 @@ output for the month field by asctime. Otherwise outputs
 template<class CharT, class Traits>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt,
           const month& m);
 
@@ -2713,11 +2738,14 @@ is undefined except for the following flags (or modified versions of these flags %b, %B, %h, %m, %n, %t or %%.

+

+Returns: os. +

 template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, month& m,
             std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -2736,6 +2764,9 @@ flags): %b, %B, %h,  %m,
 offset is not equal to nullptr, the information parsed by
 %z (if present) will be placed in *offset.
 

+

+Returns: is. +

@@ -2790,12 +2821,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const year& y); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const year& y); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year& y, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -3117,7 +3148,7 @@ into os. If the year is less than four decimal digits, pads the yea
 template<class CharT, class Traits>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt,
           const year& y);
 
@@ -3131,11 +3162,14 @@ is undefined except for the following flags (or modified versions of these flags %C, %y, %Y, %n, %t or %%.

+

+Returns: os. +

 template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year& y,
             std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -3154,6 +3188,9 @@ flags): %C, %y, %Y,  %n,
 offset is not equal to nullptr, the information parsed by
 %z (if present) will be placed in *offset.
 

+

+Returns: is. +

@@ -3200,12 +3237,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const weekday& wd); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const weekday& wd); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, weekday& wd, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -3525,7 +3562,7 @@ output for the weekday field by asctime. Otherwise outputs
 template<class CharT, class Traits>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt,
           const weekday& wd);
 
@@ -3539,11 +3576,14 @@ is undefined except for the following flags (or modified versions of these flags %a, %A, %u, %w, %n, %t or %%.

+

+Returns: os. +

 template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, weekday& wd,
             std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -3562,6 +3602,9 @@ flags): %a, %A, %u, %w, offset is not equal to nullptr, the information parsed by
 %z (if present) will be placed in *offset.
 

+

+Returns: is. +

@@ -3856,12 +3899,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const month_day& md); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const month_day& md); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, month_day& md, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -4009,7 +4052,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, co
 template<class CharT, class Traits>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt,
           const month_day& md);
 
@@ -4023,11 +4066,14 @@ is undefined except for the following flags (or modified versions of these flags %b, %B, %d, %e, %h, %m, %n, %t or %%.

+

+Returns: os. +

 template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, month_day& md,
             std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -4047,6 +4093,9 @@ placed in *abbrev.  If offset is not equal to
 nullptr, the information parsed by %z (if present) will be
 placed in *offset.
 

+

+Returns: is. +

@@ -4509,12 +4558,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const year_month& ym); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const year_month& ym); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year_month& ym, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -4787,7 +4836,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, co
 template<class CharT, class Traits>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt,
           const year_month& ym);
 
@@ -4801,11 +4850,14 @@ is undefined except for the following flags (or modified versions of these flags %b, %B, %C, %h, %m, %y, %Y, %n, %t or %%.

+

+Returns: os. +

 template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year_month& ym,
             std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -4825,6 +4877,9 @@ placed in *abbrev.  If offset is not equal to
 nullptr, the information parsed by %z (if present) will be
 placed in *offset.
 

+

+Returns: is. +

@@ -4881,12 +4936,12 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const year_month_day& ymd); template<class CharT, class Traits> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt, const year_month_day& ymd); template <class CharT, class Traits, class Alloc = std::allocator<CharT>> -void +std::basic_istream<CharT, Traits>& from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year_month_day& ymd, std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr, std::chrono::minutes* offset = nullptr); @@ -5260,7 +5315,7 @@ are prefixed with '0' if necessary..
 template<class CharT, class Traits>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<class CharT, class Traits>& os, const CharT* fmt,
           const year_month_day& ymd);
 
@@ -5275,11 +5330,14 @@ to_stream(std::basic_ostream<class CharT, class Traits>& os, const Cha If %z or %Z is used in the fmt string failbit will be set for os.

+

+Returns: os. +

 template <class CharT, class Traits, class Alloc = std::allocator<CharT>>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year_month_day& ymd,
             std::basic_string<CharT, Traits, Alloc>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -5295,6 +5353,9 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, y
 offset is not equal to nullptr, the information parsed by
 %z (if present) will be placed in *offset.
 

+

+Returns: is. +

diff --git a/tz.html b/tz.html index c362f4d..3a76718 100644 --- a/tz.html +++ b/tz.html @@ -1617,7 +1617,7 @@ std::basic_ostream<class CharT, class Traits>& operator<<(std::basic_ostream<class CharT, class Traits>& os, const zoned_time<Duration>& t) template <class CharT, class Traits, class Duration> -void +std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const zoned_time<Duration>& tp);
@@ -1935,7 +1935,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, co
 template <class CharT, class Traits, class Duration>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
           const zoned_time<Duration>& tp);
 
@@ -1946,6 +1946,9 @@ to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, tp.get_info() (stored in a local named info for example). Then calls to_stream(os, fmt, tp.get_local_time(), &info.abbrev, &info.offset).

+

+Returns: os. +

@@ -2205,7 +2208,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, co
 template <class CharT, class Traits, class Duration>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
           const utc_time<Duration>& tp);
 
@@ -2220,11 +2223,14 @@ Time points representing leap second insertions which format seconds will show If %Z is in the formatting string "UTC" will be used. If %z is in the formatting string "+0000" will be used.

+

+Returns: os. +

 template <class Duration, class CharT, class Traits>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
             utc_time<Duration>& tp, std::basic_string<CharT, Traits>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -2241,6 +2247,9 @@ If abbrev is not equal to nullptr, the information par
 offset is not equal to nullptr, the information parsed by
 %z (if present) will be placed in *offset.
 

+

+Returns: is. +

@@ -2355,7 +2364,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, co
 template <class CharT, class Traits, class Duration>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
           const tai_time<Duration>& tp);
 
@@ -2368,11 +2377,14 @@ string fmt as specified by the If %Z is in the formatting string "TAI" will be used. If %z is in the formatting string "+0000" will be used.

+

+Returns: os. +

 template <class Duration, class CharT, class Traits>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
             tai_time<Duration>& tp, std::basic_string<CharT, Traits>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -2389,6 +2401,9 @@ If abbrev is not equal to nullptr, the information par
 offset is not equal to nullptr, the information parsed by
 %z (if present) will be placed in *offset.
 

+

+Returns: is. +

@@ -2502,7 +2517,7 @@ operator<<(std::basic_ostream<class CharT, class Traits>& os, co
 template <class CharT, class Traits, class Duration>
-void
+std::basic_ostream<CharT, Traits>&
 to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
           const gps_time<Duration>& tp);
 
@@ -2515,11 +2530,14 @@ string fmt as specified by the If %Z is in the formatting string "GPS" will be used. If %z is in the formatting string "+0000" will be used.

+

+Returns: os. +

 template <class Duration, class CharT, class Traits>
-void
+std::basic_istream<CharT, Traits>&
 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
             gps_time<Duration>& tp, std::basic_string<CharT, Traits>* abbrev = nullptr,
             std::chrono::minutes* offset = nullptr);
@@ -2536,6 +2554,9 @@ If abbrev is not equal to nullptr, the information par
 offset is not equal to nullptr, the information parsed by
 %z (if present) will be placed in *offset.
 

+

+Returns: is. +