API:System.AnsiStringT.swap
C++
AnsiStringT& swap(AnsiStringT& other) {
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | dstring.h | System | AnsiStringT |
Description
Swaps string pointers.
System.AnsiStringT.swap inherits from System.AnsiStringBase.swap. All content below this line refers to System.AnsiStringBase.swap.
Swaps string pointers.
swap swaps two AnsiStringBase strings. Pointers to the data are swapped, and the data is not copied. This makes the swap operation efficient for sorting.