From Jason Turner

[string.op+]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpjtkcww7t/{from.md → to.md} +121 -0
tmp/tmpjtkcww7t/{from.md → to.md} RENAMED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### `operator+` <a id="string.op+">[[string.op+]]</a>
2
+
3
+ ``` cpp
4
+ template<class charT, class traits, class Allocator>
5
+ basic_string<charT, traits, Allocator>
6
+ operator+(const basic_string<charT, traits, Allocator>& lhs,
7
+ const basic_string<charT, traits, Allocator>& rhs);
8
+ ```
9
+
10
+ *Returns:* `basic_string<charT, traits, Allocator>(lhs).append(rhs)`.
11
+
12
+ ``` cpp
13
+ template<class charT, class traits, class Allocator>
14
+ basic_string<charT, traits, Allocator>
15
+ operator+(basic_string<charT, traits, Allocator>&& lhs,
16
+ const basic_string<charT, traits, Allocator>& rhs);
17
+ ```
18
+
19
+ *Returns:* `std::move(lhs.append(rhs))`.
20
+
21
+ ``` cpp
22
+ template<class charT, class traits, class Allocator>
23
+ basic_string<charT, traits, Allocator>
24
+ operator+(const basic_string<charT, traits, Allocator>& lhs,
25
+ basic_string<charT, traits, Allocator>&& rhs);
26
+ ```
27
+
28
+ *Returns:* `std::move(rhs.insert(0, lhs))`.
29
+
30
+ ``` cpp
31
+ template<class charT, class traits, class Allocator>
32
+ basic_string<charT, traits, Allocator>
33
+ operator+(basic_string<charT, traits, Allocator>&& lhs,
34
+ basic_string<charT, traits, Allocator>&& rhs);
35
+ ```
36
+
37
+ *Returns:* `std::move(lhs.append(rhs))`.
38
+
39
+ [*Note 1*: Or equivalently,
40
+ `std::move(rhs.insert(0, lhs))`. — *end note*]
41
+
42
+ ``` cpp
43
+ template<class charT, class traits, class Allocator>
44
+ basic_string<charT, traits, Allocator>
45
+ operator+(const charT* lhs,
46
+ const basic_string<charT, traits, Allocator>& rhs);
47
+ ```
48
+
49
+ *Returns:* `basic_string<charT, traits, Allocator>(lhs) + rhs`.
50
+
51
+ *Remarks:* Uses `traits::length()`.
52
+
53
+ ``` cpp
54
+ template<class charT, class traits, class Allocator>
55
+ basic_string<charT, traits, Allocator>
56
+ operator+(const charT* lhs,
57
+ basic_string<charT, traits, Allocator>&& rhs);
58
+ ```
59
+
60
+ *Returns:* `std::move(rhs.insert(0, lhs))`.
61
+
62
+ *Remarks:* Uses `traits::length()`.
63
+
64
+ ``` cpp
65
+ template<class charT, class traits, class Allocator>
66
+ basic_string<charT, traits, Allocator>
67
+ operator+(charT lhs,
68
+ const basic_string<charT, traits, Allocator>& rhs);
69
+ ```
70
+
71
+ *Returns:* `basic_string<charT, traits, Allocator>(1, lhs) + rhs`.
72
+
73
+ ``` cpp
74
+ template<class charT, class traits, class Allocator>
75
+ basic_string<charT, traits, Allocator>
76
+ operator+(charT lhs,
77
+ basic_string<charT, traits, Allocator>&& rhs);
78
+ ```
79
+
80
+ *Returns:* `std::move(rhs.insert(0, 1, lhs))`.
81
+
82
+ ``` cpp
83
+ template<class charT, class traits, class Allocator>
84
+ basic_string<charT, traits, Allocator>
85
+ operator+(const basic_string<charT, traits, Allocator>& lhs,
86
+ const charT* rhs);
87
+ ```
88
+
89
+ *Returns:* `lhs + basic_string<charT, traits, Allocator>(rhs)`.
90
+
91
+ *Remarks:* Uses `traits::length()`.
92
+
93
+ ``` cpp
94
+ template<class charT, class traits, class Allocator>
95
+ basic_string<charT, traits, Allocator>
96
+ operator+(basic_string<charT, traits, Allocator>&& lhs,
97
+ const charT* rhs);
98
+ ```
99
+
100
+ *Returns:* `std::move(lhs.append(rhs))`.
101
+
102
+ *Remarks:* Uses `traits::length()`.
103
+
104
+ ``` cpp
105
+ template<class charT, class traits, class Allocator>
106
+ basic_string<charT, traits, Allocator>
107
+ operator+(const basic_string<charT, traits, Allocator>& lhs,
108
+ charT rhs);
109
+ ```
110
+
111
+ *Returns:* `lhs + basic_string<charT, traits, Allocator>(1, rhs)`.
112
+
113
+ ``` cpp
114
+ template<class charT, class traits, class Allocator>
115
+ basic_string<charT, traits, Allocator>
116
+ operator+(basic_string<charT, traits, Allocator>&& lhs,
117
+ charT rhs);
118
+ ```
119
+
120
+ *Returns:* `std::move(lhs.append(1, rhs))`.
121
+