Commit e16a946
committed
buffer: implement move semantics properly
Default implementations of move semantics are not suitable - let's
implement proper ones. Along the way, do not accept allocator in
constructor by reference since buffer stores its own copy - let's
consumer it, and to do so, we should accept rvalue reference there.
Part of #1101 parent 81a097f commit e16a946
1 file changed
+21
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
273 | 290 | | |
274 | 291 | | |
275 | 292 | | |
| |||
648 | 665 | | |
649 | 666 | | |
650 | 667 | | |
651 | | - | |
| 668 | + | |
652 | 669 | | |
653 | 670 | | |
654 | 671 | | |
| |||
0 commit comments