From Jason Turner

[spanstream]

Diff to HTML by rtfpessoa

tmp/tmpnqbha3du/{from.md → to.md} RENAMED
@@ -7,13 +7,13 @@ namespace std {
7
  template<class charT, class traits = char_traits<charT>>
8
  class basic_spanstream
9
  : public basic_iostream<charT, traits> {
10
  public:
11
  using char_type = charT;
12
- using int_type = typename traits::int_type;
13
- using pos_type = typename traits::pos_type;
14
- using off_type = typename traits::off_type;
15
  using traits_type = traits;
16
 
17
  // [spanstream.cons], constructors
18
  explicit basic_spanstream(std::span<charT> s,
19
  ios_base::openmode which = ios_base::out | ios_base::in);
@@ -44,21 +44,21 @@ namespace std {
44
  explicit basic_spanstream(std::span<charT> s,
45
  ios_base::openmode which = ios_base::out | ios_bas::in);
46
  ```
47
 
48
  *Effects:* Initializes the base class with
49
- `basic_iostream<charT, traits>(addressof(sb))` and `sb` with
50
  `basic_spanbuf<charT, traits>(s, which)` [[spanbuf.cons]].
51
 
52
  ``` cpp
53
  basic_spanstream(basic_spanstream&& rhs);
54
  ```
55
 
56
- *Effects:* Initializes the base class with `std::move(rhs)` and `sb`
57
- with `std::move(rhs.sb)`. Next,
58
- `basic_iostream<charT, traits>::set_rdbuf(addressof(sb))` is called to
59
- install the contained `basic_spanbuf`.
60
 
61
  #### Swap <a id="spanstream.swap">[[spanstream.swap]]</a>
62
 
63
  ``` cpp
64
  void swap(basic_spanstream& rhs);
 
7
  template<class charT, class traits = char_traits<charT>>
8
  class basic_spanstream
9
  : public basic_iostream<charT, traits> {
10
  public:
11
  using char_type = charT;
12
+ using int_type = traits::int_type;
13
+ using pos_type = traits::pos_type;
14
+ using off_type = traits::off_type;
15
  using traits_type = traits;
16
 
17
  // [spanstream.cons], constructors
18
  explicit basic_spanstream(std::span<charT> s,
19
  ios_base::openmode which = ios_base::out | ios_base::in);
 
44
  explicit basic_spanstream(std::span<charT> s,
45
  ios_base::openmode which = ios_base::out | ios_bas::in);
46
  ```
47
 
48
  *Effects:* Initializes the base class with
49
+ `basic_iostream<charT, traits>(addressof(`*`sb`*`))` and *sb* with
50
  `basic_spanbuf<charT, traits>(s, which)` [[spanbuf.cons]].
51
 
52
  ``` cpp
53
  basic_spanstream(basic_spanstream&& rhs);
54
  ```
55
 
56
+ *Effects:* Initializes the base class with `std::move(rhs)` and *sb*
57
+ with `std::move(rhs.`*`sb`*`)`. Next,
58
+ `basic_iostream<charT, traits>::set_rdbuf(addressof(`*`sb`*`))` is
59
+ called to install the contained `basic_spanbuf`.
60
 
61
  #### Swap <a id="spanstream.swap">[[spanstream.swap]]</a>
62
 
63
  ``` cpp
64
  void swap(basic_spanstream& rhs);