aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/iosfwd
diff options
context:
space:
mode:
authorMarek Kurdej <marek.kurdej@gmail.com>2021-03-23 17:15:07 +0100
committerMarek Kurdej <marek.kurdej+llvm.org@gmail.com>2021-03-23 18:45:31 +0100
commit28f82bec7fa1bbe99ece9149adb3563041914d86 (patch)
tree152e4d9365b2fbd08764afe0236873b8a0342d5f /libcxx/include/iosfwd
parent00a6d3dfa601156a66c6d010e8c9903671bcb831 (diff)
downloadllvm-28f82bec7fa1bbe99ece9149adb3563041914d86.zip
llvm-28f82bec7fa1bbe99ece9149adb3563041914d86.tar.gz
llvm-28f82bec7fa1bbe99ece9149adb3563041914d86.tar.bz2
[libc++] [C++20] [P0482] Add missing tests and synopses for char8_t.
Left to finish P0482: * <cuchar> header. * Parts of <memory_resource> concerning char8_t. Also, tests for hash<pmr::*string>. Reviewed By: ldionne, #libc, Quuxplusone Differential Revision: https://reviews.llvm.org/D99184
Diffstat (limited to 'libcxx/include/iosfwd')
-rw-r--r--libcxx/include/iosfwd7
1 files changed, 5 insertions, 2 deletions
diff --git a/libcxx/include/iosfwd b/libcxx/include/iosfwd
index 0a0de99..f60437c 100644
--- a/libcxx/include/iosfwd
+++ b/libcxx/include/iosfwd
@@ -84,8 +84,11 @@ typedef basic_ofstream<wchar_t> wofstream;
typedef basic_fstream<wchar_t> wfstream;
template <class state> class fpos;
-typedef fpos<char_traits<char>::state_type> streampos;
-typedef fpos<char_traits<wchar_t>::state_type> wstreampos;
+using streampos = fpos<char_traits<char>::state_type>;
+using wstreampos = fpos<char_traits<wchar_t>::state_type>;
+using u8streampos = fpos<char_traits<char8_t>::state_type>; // C++20
+using u16streampos = fpos<char_traits<char16_t>::state_type>;
+using u32streampos = fpos<char_traits<char32_t>::state_type>;
} // std