diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-10-07 19:58:07 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-10-08 12:19:19 +0100 |
commit | fcc13d6fc31441b5672b68a5e3b247687724218f (patch) | |
tree | e4c9c43b0ef1e43c52b5781938dad73a8e9aef70 /gcc/objc | |
parent | db3d7270b42fe27fb05664c4fdf524ab7ad13a75 (diff) | |
download | gcc-fcc13d6fc31441b5672b68a5e3b247687724218f.zip gcc-fcc13d6fc31441b5672b68a5e3b247687724218f.tar.gz gcc-fcc13d6fc31441b5672b68a5e3b247687724218f.tar.bz2 |
libstdc++: Implement ostream insertion for chrono::duration
This is a missing piece of the C++20 <chrono> header.
It would be good to move the code into the compiled library, so that we
don't need <sstream> in <chrono>. It could also use spanstream in C++20,
to avoid memory allocations. That can be changed at a later date.
libstdc++-v3/ChangeLog:
* include/std/chrono (__detail::__units_suffix_misc): New
helper function.
(__detail::__units_suffix): Likewise.
(chrono::operator<<(basic_ostream&, const duration&)): Define.
* testsuite/20_util/duration/io.cc: New test.
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions