From Jason Turner

[spanbuf.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpb82c4wtj/{from.md → to.md} +35 -0
tmp/tmpb82c4wtj/{from.md → to.md} RENAMED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Constructors <a id="spanbuf.cons">[[spanbuf.cons]]</a>
2
+
3
+ ``` cpp
4
+ explicit basic_spanbuf(std::span<charT> s,
5
+ ios_base::openmode which = ios_base::in | ios_base::out);
6
+ ```
7
+
8
+ *Effects:* Initializes the base class with `basic_streambuf()`
9
+ [[streambuf.cons]], and *mode* with `which`. Initializes the internal
10
+ pointers as if calling `span(s)`.
11
+
12
+ ``` cpp
13
+ basic_spanbuf(basic_spanbuf&& rhs);
14
+ ```
15
+
16
+ *Effects:* Initializes the base class with `std::move(rhs)` and *mode*
17
+ with `std::move(rhs.`*`mode`*`)` and *buf* with
18
+ `std::move(rhs.`*`buf`*`)`. The sequence pointers in `*this` (`eback()`,
19
+ `gptr()`, `egptr()`, `pbase()`, `pptr()`, `epptr()`) obtain the values
20
+ which `rhs` had. It is *implementation-defined* whether
21
+ `rhs.`*`buf`*`.empty()` returns `true` after the move.
22
+
23
+ *Ensures:* Let `rhs_p` refer to the state of `rhs` just prior to this
24
+ construction.
25
+
26
+ - `span().data() == rhs_p.span().data()`
27
+ - `span().size() == rhs_p.span().size()`
28
+ - `eback() == rhs_p.eback()`
29
+ - `gptr() == rhs_p.gptr()`
30
+ - `egptr() == rhs_p.egptr()`
31
+ - `pbase() == rhs_p.pbase()`
32
+ - `pptr() == rhs_p.pptr()`
33
+ - `epptr() == rhs_p.epptr()`
34
+ - `getloc() == rhs_p.getloc()`
35
+