tmp/tmpojp33eep/{from.md → to.md}
RENAMED
|
@@ -1,119 +0,0 @@
|
|
| 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))` Or equivalently
|
| 38 |
-
`std::move(rhs.insert(0, lhs))`
|
| 39 |
-
|
| 40 |
-
``` cpp
|
| 41 |
-
template<class charT, class traits, class Allocator>
|
| 42 |
-
basic_string<charT,traits,Allocator>
|
| 43 |
-
operator+(const charT* lhs,
|
| 44 |
-
const basic_string<charT,traits,Allocator>& rhs);
|
| 45 |
-
```
|
| 46 |
-
|
| 47 |
-
*Returns:* `basic_string<charT,traits,Allocator>(lhs) + rhs`.
|
| 48 |
-
|
| 49 |
-
*Remarks:* Uses `traits::length()`.
|
| 50 |
-
|
| 51 |
-
``` cpp
|
| 52 |
-
template<class charT, class traits, class Allocator>
|
| 53 |
-
basic_string<charT,traits,Allocator>
|
| 54 |
-
operator+(const charT* lhs,
|
| 55 |
-
basic_string<charT,traits,Allocator>&& rhs);
|
| 56 |
-
```
|
| 57 |
-
|
| 58 |
-
*Returns:* `std::move(rhs.insert(0, lhs))`.
|
| 59 |
-
|
| 60 |
-
*Remarks:* Uses `traits::length()`.
|
| 61 |
-
|
| 62 |
-
``` cpp
|
| 63 |
-
template<class charT, class traits, class Allocator>
|
| 64 |
-
basic_string<charT,traits,Allocator>
|
| 65 |
-
operator+(charT lhs,
|
| 66 |
-
const basic_string<charT,traits,Allocator>& rhs);
|
| 67 |
-
```
|
| 68 |
-
|
| 69 |
-
*Returns:* `basic_string<charT,traits,Allocator>(1,lhs) + rhs`.
|
| 70 |
-
|
| 71 |
-
``` cpp
|
| 72 |
-
template<class charT, class traits, class Allocator>
|
| 73 |
-
basic_string<charT,traits,Allocator>
|
| 74 |
-
operator+(charT lhs,
|
| 75 |
-
basic_string<charT,traits,Allocator>&& rhs);
|
| 76 |
-
```
|
| 77 |
-
|
| 78 |
-
*Returns:* `std::move(rhs.insert(0, 1, lhs))`.
|
| 79 |
-
|
| 80 |
-
``` cpp
|
| 81 |
-
template<class charT, class traits, class Allocator>
|
| 82 |
-
basic_string<charT,traits,Allocator>
|
| 83 |
-
operator+(const basic_string<charT,traits,Allocator>& lhs,
|
| 84 |
-
const charT* rhs);
|
| 85 |
-
```
|
| 86 |
-
|
| 87 |
-
*Returns:* `lhs + basic_string<charT,traits,Allocator>(rhs)`.
|
| 88 |
-
|
| 89 |
-
*Remarks:* Uses `traits::length()`.
|
| 90 |
-
|
| 91 |
-
``` cpp
|
| 92 |
-
template<class charT, class traits, class Allocator>
|
| 93 |
-
basic_string<charT,traits,Allocator>
|
| 94 |
-
operator+(basic_string<charT,traits,Allocator>&& lhs,
|
| 95 |
-
const charT* rhs);
|
| 96 |
-
```
|
| 97 |
-
|
| 98 |
-
*Returns:* `std::move(lhs.append(rhs))`.
|
| 99 |
-
|
| 100 |
-
*Remarks:* Uses `traits::length()`.
|
| 101 |
-
|
| 102 |
-
``` cpp
|
| 103 |
-
template<class charT, class traits, class Allocator>
|
| 104 |
-
basic_string<charT,traits,Allocator>
|
| 105 |
-
operator+(const basic_string<charT,traits,Allocator>& lhs,
|
| 106 |
-
charT rhs);
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
*Returns:* `lhs + basic_string<charT,traits,Allocator>(1,rhs)`.
|
| 110 |
-
|
| 111 |
-
``` cpp
|
| 112 |
-
template<class charT, class traits, class Allocator>
|
| 113 |
-
basic_string<charT,traits,Allocator>
|
| 114 |
-
operator+(basic_string<charT,traits,Allocator>&& lhs,
|
| 115 |
-
charT rhs);
|
| 116 |
-
```
|
| 117 |
-
|
| 118 |
-
*Returns:* `std::move(lhs.append(1, rhs))`.
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|