Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/2035-standardlibrary-generic-cstack-cstackcopyto.md
T

26 lines
503 B
Markdown
Raw Normal View History

2026-06-23 21:47:51 +08:00
# 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.