Debian Codegraph @

libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc

raw
1 // { dg-do compile }
2 // { dg-require-normal-namespace "" }
3
4 #include <iosfwd>
5
6 namespace std
7 {
8 // [iosfwd.syn]
9
10 template<class charT> struct char_traits;
11 template<> struct char_traits<char>;
12 #if __cplusplus >= 202002L && defined __cpp_char8_t
13 template<> struct char_traits<char8_t>;
14 #endif
15 #if __cplusplus >= 201103L
16 template<> struct char_traits<char16_t>;
17 template<> struct char_traits<char32_t>;
18 #endif
19 template<> struct char_traits<wchar_t>;
20
21 template<class T> class allocator;
22
23 template<class charT, class traits>
24 class basic_ios;
25 template<class charT, class traits>
26 class basic_streambuf;
27 template<class charT, class traits>
28 class basic_istream;
29 template<class charT, class traits>
30 class basic_ostream;
31 template<class charT, class traits>
32 class basic_iostream;
33
34 _GLIBCXX_BEGIN_NAMESPACE_CXX11
35 template<class charT, class traits, class Allocator>
36 class basic_stringbuf;
37 template<class charT, class traits, class Allocator>
38 class basic_istringstream;
39 template<class charT, class traits, class Allocator>
40 class basic_ostringstream;
41 template<class charT, class traits, class Allocator>
42 class basic_stringstream;
43 _GLIBCXX_END_NAMESPACE_CXX11
44
45 template<class charT, class traits>
46 class basic_filebuf;
47 template<class charT, class traits>
48 class basic_ifstream;
49 template<class charT, class traits>
50 class basic_ofstream;
51 template<class charT, class traits>
52 class basic_fstream;
53
54 #if __cplusplus >= 202002L && _GLIBCXX_USE_CXX11_ABI
55 template<class charT, class traits, class Allocator>
56 class basic_syncbuf;
57 template<class charT, class traits, class Allocator>
58 class basic_osyncstream;
59 #endif
60
61 template<class charT, class traits>
62 class istreambuf_iterator;
63 template<class charT, class traits>
64 class ostreambuf_iterator;
65
66 typedef basic_ios<char> ios;
67 typedef basic_ios<wchar_t> wios;
68
69 typedef basic_streambuf<char> streambuf;
70 typedef basic_istream<char> istream;
71 typedef basic_ostream<char> ostream;
72 typedef basic_iostream<char> iostream;
73
74 typedef basic_stringbuf<char> stringbuf;
75 typedef basic_istringstream<char> istringstream;
76 typedef basic_ostringstream<char> ostringstream;
77 typedef basic_stringstream<char> stringstream;
78
79 #if __cplusplus > 202002L
80 typedef basic_spanbuf<char> spanbuf;
81 typedef basic_ispanstream<char> ispanstream;
82 typedef basic_ospanstream<char> ospanstream;
83 typedef basic_spanstream<char> spanstream;
84 #endif
85
86 typedef basic_filebuf<char> filebuf;
87 typedef basic_ifstream<char> ifstream;
88 typedef basic_ofstream<char> ofstream;
89 typedef basic_fstream<char> fstream;
90
91 #if __cplusplus >= 202002L && _GLIBCXX_USE_CXX11_ABI
92 typedef basic_syncbuf<char> syncbuf;
93 typedef basic_osyncstream<char> osyncstream;
94 #endif
95
96 typedef basic_streambuf<wchar_t> wstreambuf;
97 typedef basic_istream<wchar_t> wistream;
98 typedef basic_ostream<wchar_t> wostream;
99 typedef basic_iostream<wchar_t> wiostream;
100
101 typedef basic_stringbuf<wchar_t> wstringbuf;
102 typedef basic_istringstream<wchar_t> wistringstream;
103 typedef basic_ostringstream<wchar_t> wostringstream;
104 typedef basic_stringstream<wchar_t> wstringstream;
105
106 #if __cplusplus > 202002L
107 typedef basic_spanbuf<wchar_t> wspanbuf;
108 typedef basic_ispanstream<wchar_t> wispanstream;
109 typedef basic_ospanstream<wchar_t> wospanstream;
110 typedef basic_spanstream<wchar_t> wspanstream;
111 #endif
112
113 typedef basic_filebuf<wchar_t> wfilebuf;
114 typedef basic_ifstream<wchar_t> wifstream;
115 typedef basic_ofstream<wchar_t> wofstream;
116 typedef basic_fstream<wchar_t> wfstream;
117
118 #if __cplusplus >= 202002L && _GLIBCXX_USE_CXX11_ABI
119 typedef basic_syncbuf<wchar_t> wsyncbuf;
120 typedef basic_osyncstream<wchar_t> wosyncstream;
121 #endif
122
123 template<class state> class fpos;
124 typedef fpos<std::mbstate_t> streampos;
125 typedef fpos<std::mbstate_t> wstreampos;
126 #if __cplusplus >= 202002L
127 typedef fpos<std::mbstate_t> u8streampos;
128 #endif
129 #if __cplusplus >= 201103L
130 typedef fpos<std::mbstate_t> u16streampos;
131 typedef fpos<std::mbstate_t> u32streampos;
132 #endif
133 }