From Jason Turner

[spanstream.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpjjbc1qix/{from.md → to.md} +38 -0
tmp/tmpjjbc1qix/{from.md → to.md} RENAMED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### General <a id="spanstream.general">[[spanstream.general]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ template<class charT, class traits = char_traits<charT>>
6
+ class basic_spanstream
7
+ : public basic_iostream<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
+
15
+ // [spanstream.cons], constructors
16
+ explicit basic_spanstream(std::span<charT> s,
17
+ ios_base::openmode which = ios_base::out | ios_base::in);
18
+ basic_spanstream(const basic_spanstream&) = delete;
19
+ basic_spanstream(basic_spanstream&& rhs);
20
+
21
+ basic_spanstream& operator=(const basic_spanstream&) = delete;
22
+ basic_spanstream& operator=(basic_spanstream&& rhs);
23
+
24
+ // [spanstream.swap], swap
25
+ void swap(basic_spanstream& rhs);
26
+
27
+ // [spanstream.members], members
28
+ basic_spanbuf<charT, traits>* rdbuf() const noexcept;
29
+
30
+ std::span<charT> span() const noexcept;
31
+ void span(std::span<charT> s) noexcept;
32
+
33
+ private:
34
+ basic_spanbuf<charT, traits> sb; // exposition only
35
+ };
36
+ }
37
+ ```
38
+