System.AnsiStringBase.swap

From RAD Studio API Documentation

C++

AnsiStringBase& swap(AnsiStringBase& other);

Properties

Type Visibility Source Unit Parent
function public dstring.h System AnsiStringBase

Description

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.