Hello,
I am newbie to the topic of iterators. I need to know how many iterations the following "for loop" will execute. Iterators are used.
aend = m_SampleA.end();
for (aiter=m_SampleA.begin(), aiter!=aend, ++aiter)
{
...
}
The compile error comes up when I tried to print the address,
printf("address = %p\n", m_SampleA.begin())
Also, I have no idea what is the memory separation between iterator increments.. so I have difficulty finding the number of iterations...
Is there any special function that returns the address ?
Thank you
I am newbie to the topic of iterators. I need to know how many iterations the following "for loop" will execute. Iterators are used.
aend = m_SampleA.end();
for (aiter=m_SampleA.begin(), aiter!=aend, ++aiter)
{
...
}
The compile error comes up when I tried to print the address,
printf("address = %p\n", m_SampleA.begin())
Also, I have no idea what is the memory separation between iterator increments.. so I have difficulty finding the number of iterations...
Is there any special function that returns the address ?
Thank you