Deleted Added
full compact
ios (232924) ios (241900)
1// -*- C++ -*-
2//===---------------------------- ios -------------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//

--- 15 unchanged lines hidden (view full) ---

24template <class stateT> class fpos;
25
26class ios_base
27{
28public:
29 class failure;
30
31 typedef T1 fmtflags;
1// -*- C++ -*-
2//===---------------------------- ios -------------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//

--- 15 unchanged lines hidden (view full) ---

24template <class stateT> class fpos;
25
26class ios_base
27{
28public:
29 class failure;
30
31 typedef T1 fmtflags;
32 static const fmtflags boolalpha;
33 static const fmtflags dec;
34 static const fmtflags fixed;
35 static const fmtflags hex;
36 static const fmtflags internal;
37 static const fmtflags left;
38 static const fmtflags oct;
39 static const fmtflags right;
40 static const fmtflags scientific;
41 static const fmtflags showbase;
42 static const fmtflags showpoint;
43 static const fmtflags showpos;
44 static const fmtflags skipws;
45 static const fmtflags unitbuf;
46 static const fmtflags uppercase;
47 static const fmtflags adjustfield;
48 static const fmtflags basefield;
49 static const fmtflags floatfield;
32 static constexpr fmtflags boolalpha;
33 static constexpr fmtflags dec;
34 static constexpr fmtflags fixed;
35 static constexpr fmtflags hex;
36 static constexpr fmtflags internal;
37 static constexpr fmtflags left;
38 static constexpr fmtflags oct;
39 static constexpr fmtflags right;
40 static constexpr fmtflags scientific;
41 static constexpr fmtflags showbase;
42 static constexpr fmtflags showpoint;
43 static constexpr fmtflags showpos;
44 static constexpr fmtflags skipws;
45 static constexpr fmtflags unitbuf;
46 static constexpr fmtflags uppercase;
47 static constexpr fmtflags adjustfield;
48 static constexpr fmtflags basefield;
49 static constexpr fmtflags floatfield;
50
51 typedef T2 iostate;
50
51 typedef T2 iostate;
52 static const iostate badbit;
53 static const iostate eofbit;
54 static const iostate failbit;
55 static const iostate goodbit;
52 static constexpr iostate badbit;
53 static constexpr iostate eofbit;
54 static constexpr iostate failbit;
55 static constexpr iostate goodbit;
56
57 typedef T3 openmode;
56
57 typedef T3 openmode;
58 static const openmode app;
59 static const openmode ate;
60 static const openmode binary;
61 static const openmode in;
62 static const openmode out;
63 static const openmode trunc;
58 static constexpr openmode app;
59 static constexpr openmode ate;
60 static constexpr openmode binary;
61 static constexpr openmode in;
62 static constexpr openmode out;
63 static constexpr openmode trunc;
64
65 typedef T4 seekdir;
64
65 typedef T4 seekdir;
66 static const seekdir beg;
67 static const seekdir cur;
68 static const seekdir end;
66 static constexpr seekdir beg;
67 static constexpr seekdir cur;
68 static constexpr seekdir end;
69
70 class Init;
71
72 // 27.5.2.2 fmtflags state:
73 fmtflags flags() const;
74 fmtflags flags(fmtflags fmtfl);
75 fmtflags setf(fmtflags fmtfl);
76 fmtflags setf(fmtflags fmtfl, fmtflags mask);

--- 78 unchanged lines hidden (view full) ---

155
156 basic_ios(const basic_ios& ) = delete;
157 basic_ios& operator=(const basic_ios&) = delete;
158
159protected:
160 basic_ios();
161 void init(basic_streambuf<charT,traits>* sb);
162 void move(basic_ios& rhs);
69
70 class Init;
71
72 // 27.5.2.2 fmtflags state:
73 fmtflags flags() const;
74 fmtflags flags(fmtflags fmtfl);
75 fmtflags setf(fmtflags fmtfl);
76 fmtflags setf(fmtflags fmtfl, fmtflags mask);

--- 78 unchanged lines hidden (view full) ---

155
156 basic_ios(const basic_ios& ) = delete;
157 basic_ios& operator=(const basic_ios&) = delete;
158
159protected:
160 basic_ios();
161 void init(basic_streambuf<charT,traits>* sb);
162 void move(basic_ios& rhs);
163 void swap(basic_ios& rhs);
163 void swap(basic_ios& rhs) noexcept;
164 void set_rdbuf(basic_streambuf<charT, traits>* sb);
165};
166
167// 27.5.5, manipulators:
168ios_base& boolalpha (ios_base& str);
169ios_base& noboolalpha(ios_base& str);
170ios_base& showbase (ios_base& str);
171ios_base& noshowbase (ios_base& str);

--- 50 unchanged lines hidden (view full) ---

222
223_LIBCPP_BEGIN_NAMESPACE_STD
224
225typedef ptrdiff_t streamsize;
226
227class _LIBCPP_VISIBLE ios_base
228{
229public:
164 void set_rdbuf(basic_streambuf<charT, traits>* sb);
165};
166
167// 27.5.5, manipulators:
168ios_base& boolalpha (ios_base& str);
169ios_base& noboolalpha(ios_base& str);
170ios_base& showbase (ios_base& str);
171ios_base& noshowbase (ios_base& str);

--- 50 unchanged lines hidden (view full) ---

222
223_LIBCPP_BEGIN_NAMESPACE_STD
224
225typedef ptrdiff_t streamsize;
226
227class _LIBCPP_VISIBLE ios_base
228{
229public:
230 class failure;
230 class _LIBCPP_VISIBLE failure;
231
232 typedef unsigned int fmtflags;
233 static const fmtflags boolalpha = 0x0001;
234 static const fmtflags dec = 0x0002;
235 static const fmtflags fixed = 0x0004;
236 static const fmtflags hex = 0x0008;
237 static const fmtflags internal = 0x0010;
238 static const fmtflags left = 0x0020;

--- 27 unchanged lines hidden (view full) ---

266 static const openmode trunc = 0x20;
267
268 enum seekdir {beg, cur, end};
269 typedef seekdir seek_dir;
270
271 typedef _VSTD::streamoff streamoff;
272 typedef _VSTD::streampos streampos;
273
231
232 typedef unsigned int fmtflags;
233 static const fmtflags boolalpha = 0x0001;
234 static const fmtflags dec = 0x0002;
235 static const fmtflags fixed = 0x0004;
236 static const fmtflags hex = 0x0008;
237 static const fmtflags internal = 0x0010;
238 static const fmtflags left = 0x0020;

--- 27 unchanged lines hidden (view full) ---

266 static const openmode trunc = 0x20;
267
268 enum seekdir {beg, cur, end};
269 typedef seekdir seek_dir;
270
271 typedef _VSTD::streamoff streamoff;
272 typedef _VSTD::streampos streampos;
273
274 class Init;
274 class _LIBCPP_VISIBLE Init;
275
276 // 27.5.2.2 fmtflags state:
277 _LIBCPP_INLINE_VISIBILITY fmtflags flags() const;
278 _LIBCPP_INLINE_VISIBILITY fmtflags flags(fmtflags __fmtfl);
279 _LIBCPP_INLINE_VISIBILITY fmtflags setf(fmtflags __fmtfl);
280 _LIBCPP_INLINE_VISIBILITY fmtflags setf(fmtflags __fmtfl, fmtflags __mask);
281 _LIBCPP_INLINE_VISIBILITY void unsetf(fmtflags __mask);
282

--- 54 unchanged lines hidden (view full) ---

337 {
338 __rdbuf_ = __sb;
339 clear();
340 }
341
342 void __call_callbacks(event);
343 void copyfmt(const ios_base&);
344 void move(ios_base&);
275
276 // 27.5.2.2 fmtflags state:
277 _LIBCPP_INLINE_VISIBILITY fmtflags flags() const;
278 _LIBCPP_INLINE_VISIBILITY fmtflags flags(fmtflags __fmtfl);
279 _LIBCPP_INLINE_VISIBILITY fmtflags setf(fmtflags __fmtfl);
280 _LIBCPP_INLINE_VISIBILITY fmtflags setf(fmtflags __fmtfl, fmtflags __mask);
281 _LIBCPP_INLINE_VISIBILITY void unsetf(fmtflags __mask);
282

--- 54 unchanged lines hidden (view full) ---

337 {
338 __rdbuf_ = __sb;
339 clear();
340 }
341
342 void __call_callbacks(event);
343 void copyfmt(const ios_base&);
344 void move(ios_base&);
345 void swap(ios_base&);
345 void swap(ios_base&) _NOEXCEPT;
346
347 _LIBCPP_ALWAYS_INLINE
348 void set_rdbuf(void* __sb)
349 {
350 __rdbuf_ = __sb;
351 }
352
353private:

--- 273 unchanged lines hidden (view full) ---

627
628 _LIBCPP_INLINE_VISIBILITY
629 void move(basic_ios& __rhs);
630#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
631 _LIBCPP_ALWAYS_INLINE
632 void move(basic_ios&& __rhs) {move(__rhs);}
633#endif
634 _LIBCPP_INLINE_VISIBILITY
346
347 _LIBCPP_ALWAYS_INLINE
348 void set_rdbuf(void* __sb)
349 {
350 __rdbuf_ = __sb;
351 }
352
353private:

--- 273 unchanged lines hidden (view full) ---

627
628 _LIBCPP_INLINE_VISIBILITY
629 void move(basic_ios& __rhs);
630#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
631 _LIBCPP_ALWAYS_INLINE
632 void move(basic_ios&& __rhs) {move(__rhs);}
633#endif
634 _LIBCPP_INLINE_VISIBILITY
635 void swap(basic_ios& __rhs);
635 void swap(basic_ios& __rhs) _NOEXCEPT;
636 _LIBCPP_INLINE_VISIBILITY
637 void set_rdbuf(basic_streambuf<char_type, traits_type>* __sb);
638private:
639 basic_ostream<char_type, traits_type>* __tie_;
636 _LIBCPP_INLINE_VISIBILITY
637 void set_rdbuf(basic_streambuf<char_type, traits_type>* __sb);
638private:
639 basic_ostream<char_type, traits_type>* __tie_;
640 char_type __fill_;
640 mutable int_type __fill_;
641};
642
643template <class _CharT, class _Traits>
644inline _LIBCPP_INLINE_VISIBILITY
645basic_ios<_CharT, _Traits>::basic_ios(basic_streambuf<char_type,traits_type>* __sb)
646{
647 init(__sb);
648}

--- 5 unchanged lines hidden (view full) ---

654
655template <class _CharT, class _Traits>
656inline _LIBCPP_INLINE_VISIBILITY
657void
658basic_ios<_CharT, _Traits>::init(basic_streambuf<char_type, traits_type>* __sb)
659{
660 ios_base::init(__sb);
661 __tie_ = 0;
641};
642
643template <class _CharT, class _Traits>
644inline _LIBCPP_INLINE_VISIBILITY
645basic_ios<_CharT, _Traits>::basic_ios(basic_streambuf<char_type,traits_type>* __sb)
646{
647 init(__sb);
648}

--- 5 unchanged lines hidden (view full) ---

654
655template <class _CharT, class _Traits>
656inline _LIBCPP_INLINE_VISIBILITY
657void
658basic_ios<_CharT, _Traits>::init(basic_streambuf<char_type, traits_type>* __sb)
659{
660 ios_base::init(__sb);
661 __tie_ = 0;
662 __fill_ = widen(' ');
662 __fill_ = traits_type::eof();
663}
664
665template <class _CharT, class _Traits>
666inline _LIBCPP_INLINE_VISIBILITY
667basic_ostream<_CharT, _Traits>*
668basic_ios<_CharT, _Traits>::tie() const
669{
670 return __tie_;

--- 55 unchanged lines hidden (view full) ---

726 return use_facet<ctype<char_type> >(getloc()).widen(__c);
727}
728
729template <class _CharT, class _Traits>
730inline _LIBCPP_INLINE_VISIBILITY
731_CharT
732basic_ios<_CharT, _Traits>::fill() const
733{
663}
664
665template <class _CharT, class _Traits>
666inline _LIBCPP_INLINE_VISIBILITY
667basic_ostream<_CharT, _Traits>*
668basic_ios<_CharT, _Traits>::tie() const
669{
670 return __tie_;

--- 55 unchanged lines hidden (view full) ---

726 return use_facet<ctype<char_type> >(getloc()).widen(__c);
727}
728
729template <class _CharT, class _Traits>
730inline _LIBCPP_INLINE_VISIBILITY
731_CharT
732basic_ios<_CharT, _Traits>::fill() const
733{
734 if (traits_type::eq_int_type(traits_type::eof(), __fill_))
735 __fill_ = widen(' ');
734 return __fill_;
735}
736
737template <class _CharT, class _Traits>
738inline _LIBCPP_INLINE_VISIBILITY
739_CharT
740basic_ios<_CharT, _Traits>::fill(char_type __ch)
741{

--- 27 unchanged lines hidden (view full) ---

769 __tie_ = __rhs.__tie_;
770 __rhs.__tie_ = 0;
771 __fill_ = __rhs.__fill_;
772}
773
774template <class _CharT, class _Traits>
775inline _LIBCPP_INLINE_VISIBILITY
776void
736 return __fill_;
737}
738
739template <class _CharT, class _Traits>
740inline _LIBCPP_INLINE_VISIBILITY
741_CharT
742basic_ios<_CharT, _Traits>::fill(char_type __ch)
743{

--- 27 unchanged lines hidden (view full) ---

771 __tie_ = __rhs.__tie_;
772 __rhs.__tie_ = 0;
773 __fill_ = __rhs.__fill_;
774}
775
776template <class _CharT, class _Traits>
777inline _LIBCPP_INLINE_VISIBILITY
778void
777basic_ios<_CharT, _Traits>::swap(basic_ios& __rhs)
779basic_ios<_CharT, _Traits>::swap(basic_ios& __rhs) _NOEXCEPT
778{
779 ios_base::swap(__rhs);
780 _VSTD::swap(__tie_, __rhs.__tie_);
781 _VSTD::swap(__fill_, __rhs.__fill_);
782}
783
784template <class _CharT, class _Traits>
785inline _LIBCPP_INLINE_VISIBILITY

--- 201 unchanged lines hidden ---
780{
781 ios_base::swap(__rhs);
782 _VSTD::swap(__tie_, __rhs.__tie_);
783 _VSTD::swap(__fill_, __rhs.__fill_);
784}
785
786template <class _CharT, class _Traits>
787inline _LIBCPP_INLINE_VISIBILITY

--- 201 unchanged lines hidden ---