template<typename T>
int CQueue::CopyTo(T &dst_array[],constint dst_start=0)
{
//--- resize arrayif((dst_start+m_size)>ArraySize(dst_array))
if(ArrayResize(dst_array,dst_start+m_size)<0)
return(0);
//--- copy queue elements from head to tailif(m_tail>m_head)
return(ArrayCopy(dst_array,m_array,dst_start,m_head,m_size));
//--- copy queue elements from head to endint num_copied=ArrayCopy(dst_array,m_array,dst_start,m_head,m_array.Size()-m_head);
//--- copy queue elements from beginning to tail
num_copied+=ArrayCopy(dst_array,m_array,dst_start+num_copied,0,m_tail);
//--- return number of copied elementsreturn(num_copied);
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Changes in Include\Generic\Queue.mqh.
Most likely, this will not be compiled in MQL4.
Changes in Include\Generic\Queue.mqh.
Most likely, this will not be compiled in MQL4.
It's not simple changes, it's 2 bugs fixed. And it's not related to build 4772, it's 4 months old.
Forum on trading, automated trading systems and testing trading strategies
Bug in CQueue
Ilyas, 2024.08.26 17:11
Thank you all
Fixed
It's not just changes, it's 2 bug fixes. And it's not related to build 4772, it's already 4 months old.
Thanks, I'll keep you posted.