From Jason Turner

[ospanstream]

Diff to HTML by rtfpessoa

tmp/tmp1lymi1ye/{from.md → to.md} RENAMED
@@ -7,13 +7,13 @@ namespace std {
7
  template<class charT, class traits = char_traits<charT>>
8
  class basic_ospanstream
9
  : public basic_ostream<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
  // [ospanstream.cons], constructors
18
  explicit basic_ospanstream(std::span<charT> s,
19
  ios_base::openmode which = ios_base::out);
@@ -44,22 +44,22 @@ namespace std {
44
  explicit basic_ospanstream(std::span<charT> s,
45
  ios_base::openmode which = ios_base::out);
46
  ```
47
 
48
  *Effects:* Initializes the base class with
49
- `basic_ostream<charT, traits>(addressof(sb))` and `sb` with
50
  `basic_spanbuf<charT, traits>(s, which | ios_base::out)`
51
  [[spanbuf.cons]].
52
 
53
  ``` cpp
54
  basic_ospanstream(basic_ospanstream&& rhs) noexcept;
55
  ```
56
 
57
- *Effects:* Initializes the base class with `std::move(rhs)` and `sb`
58
- with `std::move(rhs.sb)`. Next,
59
- `basic_ostream<charT, traits>::set_rdbuf(addressof(sb))` is called to
60
- install the contained `basic_spanbuf`.
61
 
62
  #### Swap <a id="ospanstream.swap">[[ospanstream.swap]]</a>
63
 
64
  ``` cpp
65
  void swap(basic_ospanstream& rhs);
 
7
  template<class charT, class traits = char_traits<charT>>
8
  class basic_ospanstream
9
  : public basic_ostream<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
  // [ospanstream.cons], constructors
18
  explicit basic_ospanstream(std::span<charT> s,
19
  ios_base::openmode which = ios_base::out);
 
44
  explicit basic_ospanstream(std::span<charT> s,
45
  ios_base::openmode which = ios_base::out);
46
  ```
47
 
48
  *Effects:* Initializes the base class with
49
+ `basic_ostream<charT, traits>(addressof(`*`sb`*`))` and *sb* with
50
  `basic_spanbuf<charT, traits>(s, which | ios_base::out)`
51
  [[spanbuf.cons]].
52
 
53
  ``` cpp
54
  basic_ospanstream(basic_ospanstream&& rhs) noexcept;
55
  ```
56
 
57
+ *Effects:* Initializes the base class with `std::move(rhs)` and *sb*
58
+ with `std::move(rhs.`*`sb`*`)`. Next,
59
+ `basic_ostream<charT, traits>::set_rdbuf(addressof(`*`sb`*`))` is called
60
+ to install the contained `basic_spanbuf`.
61
 
62
  #### Swap <a id="ospanstream.swap">[[ospanstream.swap]]</a>
63
 
64
  ``` cpp
65
  void swap(basic_ospanstream& rhs);