43 lines
1.1 KiB
Markdown
43 lines
1.1 KiB
Markdown
[spanstream.members]
|
|
|
|
# 31 Input/output library [[input.output]](./#input.output)
|
|
|
|
## 31.9 Span-based streams [[span.streams]](span.streams#spanstream.members)
|
|
|
|
### 31.9.6 Class template basic_spanstream [[spanstream]](spanstream#members)
|
|
|
|
#### 31.9.6.4 Member functions [spanstream.members]
|
|
|
|
[ð](#lib:rdbuf,basic_spanstream)
|
|
|
|
`basic_spanbuf<charT, traits>* rdbuf() const noexcept;
|
|
`
|
|
|
|
[1](#1)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L10833)
|
|
|
|
*Effects*: Equivalent to:return const_cast<basic_spanbuf<charT, traits>*>(addressof(*sb*));
|
|
|
|
[ð](#lib:span,basic_spanstream)
|
|
|
|
`std::span<charT> span() const noexcept;
|
|
`
|
|
|
|
[2](#2)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L10847)
|
|
|
|
*Effects*: Equivalent to: return rdbuf()->span();
|
|
|
|
[ð](#lib:span,basic_spanstream_)
|
|
|
|
`void span(std::span<charT> s) noexcept;
|
|
`
|
|
|
|
[3](#3)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L10858)
|
|
|
|
*Effects*: Equivalent to rdbuf()->span(s)[.](#3.sentence-1)
|