From Jason Turner

[string.swap]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp79cmwntf/{from.md → to.md} +16 -0
tmp/tmp79cmwntf/{from.md → to.md} RENAMED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### `basic_string::swap` <a id="string.swap">[[string.swap]]</a>
2
+
3
+ ``` cpp
4
+ void swap(basic_string& s)
5
+ noexcept(allocator_traits<Allocator>::propagate_on_container_swap::value ||
6
+ allocator_traits<Allocator>::is_always_equal::value);
7
+ ```
8
+
9
+ *Postconditions:* `*this` contains the same sequence of characters that
10
+ was in `s`, `s` contains the same sequence of characters that was in
11
+ `*this`.
12
+
13
+ *Throws:* Nothing.
14
+
15
+ *Complexity:* Constant time.
16
+