position = m_TrendItems[pen].GetTrendPoints().GetHeadPosition();

while(trendpoint .m_time < requiredtime)
trendpoint = m_TrendItems[pen].GetTrendPoints().GetPrev(position);

m_TrendItems is the global array which has almost 10,000 points for each pen. My question is instead of getting the trendpoint, i want to get the pointer for the (position or point).

I want to store this pointer in a separate array and use it in the future so that i don't have to go from the head position always.

How can i do this?

Do i have to go through all the time i have to find a point can't i store a pointer?