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 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 DynamicArray, use the Copy (or CopyRange) method. 

 

Copy

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!