Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/2035-standardlibrary-generic-cstack-cstackcopyto.md
T
2026-06-23 21:47:51 +08:00

503 B

CopyTo

Copies all elements of a stack to the specified array starting at the specified index.

int CopyTo(
   T&         dst_array[],     // an array for writing
   const int  dst_start=0      // the starting index for writing
   );

Parameters

&dst_array[]

[out] An array to which the elements of the stack will be written.

dst_start=0

[in] An index in the array from which copying starts.

Return Value

Returns the number of copied elements.