From Jason Turner

[string.view.io]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpl073bxkc/{from.md → to.md} +19 -0
tmp/tmpl073bxkc/{from.md → to.md} RENAMED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Inserters and extractors <a id="string.view.io">[[string.view.io]]</a>
2
+
3
+ ``` cpp
4
+ template<class charT, class traits>
5
+ basic_ostream<charT, traits>&
6
+ operator<<(basic_ostream<charT, traits>& os,
7
+ basic_string_view<charT, traits> str);
8
+ ```
9
+
10
+ *Effects:* Behaves as a formatted output
11
+ function ([[ostream.formatted.reqmts]]) of `os`. Forms a character
12
+ sequence `seq`, initially consisting of the elements defined by the
13
+ range \[`str.begin()`, `str.end()`). Determines padding for `seq` as
14
+ described in  [[ostream.formatted.reqmts]]. Then inserts `seq` as if by
15
+ calling `os.rdbuf()->sputn(seq, n)`, where `n` is the larger of
16
+ `os.width()` and `str.size()`; then calls `os.width(0)`.
17
+
18
+ *Returns:* `os`
19
+