RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStringBase::swap Method

Swap string pointers.

Pascal
function swap(var other: AnsiStringBase): AnsiStringBase&;
C++

System::AnsiStringBase::swap swaps two System::AnsiStringBase strings. Pointers to the data are swapped, and the data is not copied. This makes the swap operation efficient for sorting. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!