haiku/docs/user/support
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
..
Architecture.dox
Archivable.dox
Autolock.dox
Beep.dox
BlockCache.dox
BufferedDataIO.dox
BufferIO.dox
DataIO.dox
DateTime.dox HaikuBook: Add skeleton for support/DateTime.h and support/Job.h. 2020-10-11 15:46:06 +00:00
Flattenable.dox
Job.dox HaikuBook: Add skeleton for support/DateTime.h and support/Job.h. 2020-10-11 15:46:06 +00:00
List.dox
Locker.dox
ObjectList.dox
parsedate.dox
Referenceable.dox
StackOrHeapArray.dox
StopWatch.dox
String.dox BString: add support for move semantics with C++11 and up. 2021-09-08 07:07:36 +00:00
StringList.dox
support_intro.dox
SupportDefs.dox HaikuBook: unichar was removed in hrev54953 2021-04-19 07:02:08 +01:00
TLS.dox
TypeConstants.dox AppKit: BMessage Add/Find/Get/Has/ReplaceNodeRef 2020-09-10 17:18:09 +00:00
Url.dox HaikuBook: fix part of the warnings marked by Doxygen 2020-03-01 09:50:49 +00:00