System.UnicodeString.swap

From RAD Studio API Documentation
Jump to: navigation, search

C++

UnicodeString& swap(UnicodeString& other);

Properties

Type Visibility Source Unit Parent
function public ustring.h System UnicodeString

Description

Swaps UnicodeString with another string.

swap swaps a UnicodeString with a given string. Swapping is not done by copying, but by exchanging references. This is a very efficient operation, appropriate for sorting strings, for example.