RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DynamicArray::= Operator

Assigns data from another Dynamic Array.

Pascal
operator =(const src: DynamicArray<T>&);
C++
DynamicArray& operator =(const DynamicArray<T>& src);

Dynamic Arrays are reference counted. When a System::DynamicArray is assigned to another, only the reference is assigned (and the reference count adjusted), the contents of the source are not copied. Similarly, when two Dynamic Arrays are compared, only the references are compared, not the contents. To create a separate copy of the contents of a System::DynamicArray, use the Copy (or CopyRange) method. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!