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

Swap string pointers.

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