haiku/headers
Niels Sascha Reedijk 0b86520c4d BString: add support for move semantics with C++11 and up.
This implements the "rule of 5" for this type. While the copy operation for
BString was already using shallow copies of the underlying data, this change
further optimizes moving the data from one object to another.

While it is not the intention to implement move semantics to all types in the
legacy Haiku/Be kits, data types like BString are good candidates, because move
operations are often useful when working with data within an application.

In this implementation, the internal data of the string object will be set to
NULL, thus leaving an empty string.

Change-Id: I16bf9424f9b17f622b0b57659b80628e18760288
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4428
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-09-08 07:07:36 +00:00
..
build libroot: remove delete_driver_settings 2021-05-31 06:51:45 +00:00
compatibility features.h: enable ISOC11 definitions for _GNU_SOURCE and C++17 2021-05-04 05:25:52 +00:00
config riscv: cleanup architecture macro checks 2021-09-01 18:04:59 +00:00
cpp build fix. 2015-11-12 22:24:16 +01:00
glibc
libs libcxxrt: Remove unused library and headers 2021-07-23 22:02:15 +00:00
os BString: add support for move semantics with C++11 and up. 2021-09-08 07:07:36 +00:00
posix riscv: cleanup architecture macro checks 2021-09-01 18:04:59 +00:00
private system/uart: refactor debug_uart, fix arm uart 2021-09-06 20:37:14 +00:00
tools Fix #12799: Enable elf symbol patching for Haiku 2016-10-30 10:42:24 +01:00