tmp/tmp7140mhnk/{from.md → to.md}
RENAMED
|
@@ -3,18 +3,17 @@
|
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
template <class charT, class traits = char_traits<charT>>
|
| 6 |
class basic_ios : public ios_base {
|
| 7 |
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
//
|
| 10 |
-
typedef charT char_type;
|
| 11 |
-
typedef typename traits::int_type int_type;
|
| 12 |
-
typedef typename traits::pos_type pos_type;
|
| 13 |
-
typedef typename traits::off_type off_type;
|
| 14 |
-
typedef traits traits_type;
|
| 15 |
-
|
| 16 |
explicit operator bool() const;
|
| 17 |
bool operator!() const;
|
| 18 |
iostate rdstate() const;
|
| 19 |
void clear(iostate state = goodbit);
|
| 20 |
void setstate(iostate state);
|
|
@@ -24,15 +23,15 @@ namespace std {
|
|
| 24 |
bool bad() const;
|
| 25 |
|
| 26 |
iostate exceptions() const;
|
| 27 |
void exceptions(iostate except);
|
| 28 |
|
| 29 |
-
// [basic.ios.cons]
|
| 30 |
explicit basic_ios(basic_streambuf<charT, traits>* sb);
|
| 31 |
virtual ~basic_ios();
|
| 32 |
|
| 33 |
-
// [basic.ios.members]
|
| 34 |
basic_ostream<charT, traits>* tie() const;
|
| 35 |
basic_ostream<charT, traits>* tie(basic_ostream<charT, traits>* tiestr);
|
| 36 |
|
| 37 |
basic_streambuf<charT, traits>* rdbuf() const;
|
| 38 |
basic_streambuf<charT, traits>* rdbuf(basic_streambuf<charT, traits>* sb);
|
|
|
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
template <class charT, class traits = char_traits<charT>>
|
| 6 |
class basic_ios : public ios_base {
|
| 7 |
public:
|
| 8 |
+
using char_type = charT;
|
| 9 |
+
using int_type = typename traits::int_type;
|
| 10 |
+
using pos_type = typename traits::pos_type;
|
| 11 |
+
using off_type = typename traits::off_type;
|
| 12 |
+
using traits_type = traits;
|
| 13 |
|
| 14 |
+
// [iostate.flags], flags functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
explicit operator bool() const;
|
| 16 |
bool operator!() const;
|
| 17 |
iostate rdstate() const;
|
| 18 |
void clear(iostate state = goodbit);
|
| 19 |
void setstate(iostate state);
|
|
|
|
| 23 |
bool bad() const;
|
| 24 |
|
| 25 |
iostate exceptions() const;
|
| 26 |
void exceptions(iostate except);
|
| 27 |
|
| 28 |
+
// [basic.ios.cons], constructor/destructor
|
| 29 |
explicit basic_ios(basic_streambuf<charT, traits>* sb);
|
| 30 |
virtual ~basic_ios();
|
| 31 |
|
| 32 |
+
// [basic.ios.members], members
|
| 33 |
basic_ostream<charT, traits>* tie() const;
|
| 34 |
basic_ostream<charT, traits>* tie(basic_ostream<charT, traits>* tiestr);
|
| 35 |
|
| 36 |
basic_streambuf<charT, traits>* rdbuf() const;
|
| 37 |
basic_streambuf<charT, traits>* rdbuf(basic_streambuf<charT, traits>* sb);
|