haiku/docs
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
..
add-ons Move NetFS to a package 2014-11-17 15:24:07 +01:00
apps Migrate the BTextMailComponent docs to the Haiku Book. 2017-12-26 13:59:25 -05:00
develop Generate developer docs with Sphinx 2021-08-27 11:41:17 +00:00
interface_guidelines HIG doc: Fix typos etc. 2020-10-09 11:09:02 +00:00
misc makefile-engine docs: Fix app_name_catalog_entry. 2018-08-25 21:22:54 -04:00
user BString: add support for move semantics with C++11 and up. 2021-09-08 07:07:36 +00:00
userguide User documentation: synchronize userguide from the userguide translator 2021-07-21 12:54:38 +01:00
welcome User documentation: synchronize welcome docs from the userguide translator 2021-07-21 12:54:19 +01:00