R
.rhavin grobert
assume the following:
______________________
std::vector<foo> m_vFoo; // we assume foo has more than four
elements!
foo* FifthElement(foo* pFooZero)
// we call +0 the zeroth element!
{
return pFooZero + 5;
};
______________________
is &m_vFoo[5] the same as FifthElement(m_vFoo) ? Allways?
______________________
std::vector<foo> m_vFoo; // we assume foo has more than four
elements!
foo* FifthElement(foo* pFooZero)
// we call +0 the zeroth element!
{
return pFooZero + 5;
};
______________________
is &m_vFoo[5] the same as FifthElement(m_vFoo) ? Allways?