tmp/tmpf5lhs9c0/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### General <a id="string.view.general">[[string.view.general]]</a>
|
| 2 |
+
|
| 3 |
+
The class template `basic_string_view` describes an object that can
|
| 4 |
+
refer to a constant contiguous sequence of char-like [[strings.general]]
|
| 5 |
+
objects with the first element of the sequence at position zero. In the
|
| 6 |
+
rest of [[string.view]], the type of the char-like objects held in a
|
| 7 |
+
`basic_string_view` object is designated by `charT`.
|
| 8 |
+
|
| 9 |
+
[*Note 1*: The library provides implicit conversions from
|
| 10 |
+
`const charT*` and `std::basic_string<charT, ...>` to
|
| 11 |
+
`std::basic_string_view<charT, ...>` so that user code can accept just
|
| 12 |
+
`std::basic_string_view<charT>` as a non-templated parameter wherever a
|
| 13 |
+
sequence of characters is expected. User-defined types can define their
|
| 14 |
+
own implicit conversions to `std::basic_string_view<charT>` in order to
|
| 15 |
+
interoperate with these functions. — *end note*]
|
| 16 |
+
|