diff --git a/libcxx/include/__fwd/fstream.h b/libcxx/include/__fwd/fstream.h --- a/libcxx/include/__fwd/fstream.h +++ b/libcxx/include/__fwd/fstream.h @@ -27,16 +27,16 @@ template > class _LIBCPP_TEMPLATE_VIS basic_fstream; -typedef basic_filebuf filebuf; -typedef basic_ifstream ifstream; -typedef basic_ofstream ofstream; -typedef basic_fstream fstream; +using filebuf = basic_filebuf; +using ifstream = basic_ifstream; +using ofstream = basic_ofstream; +using fstream = basic_fstream; #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS -typedef basic_filebuf wfilebuf; -typedef basic_ifstream wifstream; -typedef basic_ofstream wofstream; -typedef basic_fstream wfstream; +using wfilebuf = basic_filebuf; +using wifstream = basic_ifstream; +using wofstream = basic_ofstream; +using wfstream = basic_fstream; #endif template diff --git a/libcxx/include/__fwd/ios.h b/libcxx/include/__fwd/ios.h --- a/libcxx/include/__fwd/ios.h +++ b/libcxx/include/__fwd/ios.h @@ -21,9 +21,9 @@ template > class _LIBCPP_TEMPLATE_VIS basic_ios; -typedef basic_ios ios; +using ios = basic_ios; #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS -typedef basic_ios wios; +using wios = basic_ios; #endif template @@ -31,9 +31,9 @@ #if defined(_NEWLIB_VERSION) // On newlib, off_t is 'long int' -typedef long int streamoff; // for char_traits in +using streamoff = long int; // for char_traits in #else -typedef long long streamoff; // for char_traits in +using streamoff = long long; // for char_traits in #endif _LIBCPP_END_NAMESPACE_STD diff --git a/libcxx/include/__fwd/istream.h b/libcxx/include/__fwd/istream.h --- a/libcxx/include/__fwd/istream.h +++ b/libcxx/include/__fwd/istream.h @@ -24,12 +24,12 @@ template > class _LIBCPP_TEMPLATE_VIS basic_iostream; -typedef basic_istream istream; -typedef basic_iostream iostream; +using istream = basic_istream; +using iostream = basic_iostream; #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS -typedef basic_istream wistream; -typedef basic_iostream wiostream; +using wistream = basic_istream; +using wiostream = basic_iostream; #endif template diff --git a/libcxx/include/__fwd/ostream.h b/libcxx/include/__fwd/ostream.h --- a/libcxx/include/__fwd/ostream.h +++ b/libcxx/include/__fwd/ostream.h @@ -21,10 +21,10 @@ template > class _LIBCPP_TEMPLATE_VIS basic_ostream; -typedef basic_ostream ostream; +using ostream = basic_ostream; #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS -typedef basic_ostream wostream; +using wostream = basic_ostream; #endif template diff --git a/libcxx/include/__fwd/sstream.h b/libcxx/include/__fwd/sstream.h --- a/libcxx/include/__fwd/sstream.h +++ b/libcxx/include/__fwd/sstream.h @@ -28,16 +28,16 @@ template , class _Allocator = allocator<_CharT> > class _LIBCPP_TEMPLATE_VIS basic_stringstream; -typedef basic_stringbuf stringbuf; -typedef basic_istringstream istringstream; -typedef basic_ostringstream ostringstream; -typedef basic_stringstream stringstream; +using stringbuf = basic_stringbuf; +using istringstream = basic_istringstream; +using ostringstream = basic_ostringstream; +using stringstream = basic_stringstream; #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS -typedef basic_stringbuf wstringbuf; -typedef basic_istringstream wistringstream; -typedef basic_ostringstream wostringstream; -typedef basic_stringstream wstringstream; +using wstringbuf = basic_stringbuf; +using wistringstream = basic_istringstream; +using wostringstream = basic_ostringstream; +using wstringstream = basic_stringstream; #endif template diff --git a/libcxx/include/__fwd/streambuf.h b/libcxx/include/__fwd/streambuf.h --- a/libcxx/include/__fwd/streambuf.h +++ b/libcxx/include/__fwd/streambuf.h @@ -21,10 +21,10 @@ template > class _LIBCPP_TEMPLATE_VIS basic_streambuf; -typedef basic_streambuf streambuf; +using streambuf = basic_streambuf; #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS -typedef basic_streambuf wstreambuf; +using wstreambuf = basic_streambuf; #endif template