From Jason Turner

[string.view.modifiers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmph84i_b9z/{from.md → to.md} +24 -0
tmp/tmph84i_b9z/{from.md → to.md} RENAMED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Modifiers <a id="string.view.modifiers">[[string.view.modifiers]]</a>
2
+
3
+ ``` cpp
4
+ constexpr void remove_prefix(size_type n);
5
+ ```
6
+
7
+ *Requires:* `n <= size()`.
8
+
9
+ *Effects:* Equivalent to: `data_ += n; size_ -= n;`
10
+
11
+ ``` cpp
12
+ constexpr void remove_suffix(size_type n);
13
+ ```
14
+
15
+ *Requires:* `n <= size()`.
16
+
17
+ *Effects:* Equivalent to: `size_ -= n;`
18
+
19
+ ``` cpp
20
+ constexpr void swap(basic_string_view& s) noexcept;
21
+ ```
22
+
23
+ *Effects:* Exchanges the values of `*this` and `s`.
24
+