API:System.AnsiStringT.swap

From RAD Studio API Documentation
Jump to: navigation, search

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.