From Jason Turner

[istringstream.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmphp1u5h0n/{from.md → to.md} +13 -6
tmp/tmphp1u5h0n/{from.md → to.md} RENAMED
@@ -1,17 +1,16 @@
1
  #### General <a id="istringstream.general">[[istringstream.general]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
- template<class charT, class traits = char_traits<charT>,
6
- class Allocator = allocator<charT>>
7
  class basic_istringstream : public basic_istream<charT, traits> {
8
  public:
9
  using char_type = charT;
10
- using int_type = typename traits::int_type;
11
- using pos_type = typename traits::pos_type;
12
- using off_type = typename traits::off_type;
13
  using traits_type = traits;
14
  using allocator_type = Allocator;
15
 
16
  // [istringstream.cons], constructors
17
  basic_istringstream() : basic_istringstream(ios_base::in) {}
@@ -33,10 +32,16 @@ namespace std {
33
  ios_base::openmode which, const Allocator& a);
34
  template<class SAlloc>
35
  explicit basic_istringstream(
36
  const basic_string<charT, traits, SAlloc>& s,
37
  ios_base::openmode which = ios_base::in);
 
 
 
 
 
 
38
  basic_istringstream(const basic_istringstream&) = delete;
39
  basic_istringstream(basic_istringstream&& rhs);
40
 
41
  basic_istringstream& operator=(const basic_istringstream&) = delete;
42
  basic_istringstream& operator=(basic_istringstream&& rhs);
@@ -54,10 +59,12 @@ namespace std {
54
 
55
  void str(const basic_string<charT, traits, Allocator>& s);
56
  template<class SAlloc>
57
  void str(const basic_string<charT, traits, SAlloc>& s);
58
  void str(basic_string<charT, traits, Allocator>&& s);
 
 
59
 
60
  private:
61
  basic_stringbuf<charT, traits, Allocator> sb; // exposition only
62
  };
63
  }
@@ -67,7 +74,7 @@ The class `basic_istringstream<charT, traits, Allocator>` supports
67
  reading objects of class `basic_string<{}charT, traits, Allocator>`. It
68
  uses a `basic_stringbuf<charT, traits, Allocator>` object to control the
69
  associated storage. For the sake of exposition, the maintained data is
70
  presented here as:
71
 
72
- - `sb`, the `stringbuf` object.
73
 
 
1
  #### General <a id="istringstream.general">[[istringstream.general]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
+ template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>>
 
6
  class basic_istringstream : public basic_istream<charT, traits> {
7
  public:
8
  using char_type = charT;
9
+ using int_type = traits::int_type;
10
+ using pos_type = traits::pos_type;
11
+ using off_type = traits::off_type;
12
  using traits_type = traits;
13
  using allocator_type = Allocator;
14
 
15
  // [istringstream.cons], constructors
16
  basic_istringstream() : basic_istringstream(ios_base::in) {}
 
32
  ios_base::openmode which, const Allocator& a);
33
  template<class SAlloc>
34
  explicit basic_istringstream(
35
  const basic_string<charT, traits, SAlloc>& s,
36
  ios_base::openmode which = ios_base::in);
37
+ template<class T>
38
+ explicit basic_istringstream(const T& t, ios_base::openmode which = ios_base::in);
39
+ template<class T>
40
+ basic_istringstream(const T& t, const Allocator& a);
41
+ template<class T>
42
+ basic_istringstream(const T& t, ios_base::openmode which, const Allocator& a);
43
  basic_istringstream(const basic_istringstream&) = delete;
44
  basic_istringstream(basic_istringstream&& rhs);
45
 
46
  basic_istringstream& operator=(const basic_istringstream&) = delete;
47
  basic_istringstream& operator=(basic_istringstream&& rhs);
 
59
 
60
  void str(const basic_string<charT, traits, Allocator>& s);
61
  template<class SAlloc>
62
  void str(const basic_string<charT, traits, SAlloc>& s);
63
  void str(basic_string<charT, traits, Allocator>&& s);
64
+ template<class T>
65
+ void str(const T& t);
66
 
67
  private:
68
  basic_stringbuf<charT, traits, Allocator> sb; // exposition only
69
  };
70
  }
 
74
  reading objects of class `basic_string<{}charT, traits, Allocator>`. It
75
  uses a `basic_stringbuf<charT, traits, Allocator>` object to control the
76
  associated storage. For the sake of exposition, the maintained data is
77
  presented here as:
78
 
79
+ - *`sb`*, the `stringbuf` object.
80