From Jason Turner

[ospanstream.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp3mu23ldn/{from.md → to.md} +21 -0
tmp/tmp3mu23ldn/{from.md → to.md} RENAMED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Constructors <a id="ospanstream.cons">[[ospanstream.cons]]</a>
2
+
3
+ ``` cpp
4
+ explicit basic_ospanstream(std::span<charT> s,
5
+ ios_base::openmode which = ios_base::out);
6
+ ```
7
+
8
+ *Effects:* Initializes the base class with
9
+ `basic_ostream<charT, traits>(addressof(sb))` and `sb` with
10
+ `basic_spanbuf<charT, traits>(s, which | ios_base::out)`
11
+ [[spanbuf.cons]].
12
+
13
+ ``` cpp
14
+ basic_ospanstream(basic_ospanstream&& rhs) noexcept;
15
+ ```
16
+
17
+ *Effects:* Initializes the base class with `std::move(rhs)` and `sb`
18
+ with `std::move(rhs.sb)`. Next,
19
+ `basic_ostream<charT, traits>::set_rdbuf(addressof(sb))` is called to
20
+ install the contained `basic_spanbuf`.
21
+