From Jason Turner

[string.view.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpwzexptdm/{from.md → to.md} +30 -0
tmp/tmpwzexptdm/{from.md → to.md} RENAMED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Construction and assignment <a id="string.view.cons">[[string.view.cons]]</a>
2
+
3
+ ``` cpp
4
+ constexpr basic_string_view() noexcept;
5
+ ```
6
+
7
+ *Effects:* Constructs an empty `basic_string_view`.
8
+
9
+ *Postconditions:* `size_ == 0` and `data_ == nullptr`.
10
+
11
+ ``` cpp
12
+ constexpr basic_string_view(const charT* str);
13
+ ```
14
+
15
+ *Requires:* \[`str`, `str + traits::length(str)`) is a valid range.
16
+
17
+ *Effects:* Constructs a `basic_string_view`, with the postconditions in
18
+ Table  [[tab:string.view.ctr.2]].
19
+
20
+ *Complexity:* 𝑂(`traits::length(str)`).
21
+
22
+ ``` cpp
23
+ constexpr basic_string_view(const charT* str, size_type len);
24
+ ```
25
+
26
+ *Requires:* \[`str`, `str + len`) is a valid range.
27
+
28
+ *Effects:* Constructs a `basic_string_view`, with the postconditions in
29
+ Table  [[tab:string.view.ctr.3]].
30
+