assume the following:
_______________ _______
std::vector<foo m_vFoo; // we assume foo has more than four
elements!
foo* FifthElement(fo o* 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(fo o* pFooZero)
// we call +0 the zeroth element!
{
return pFooZero + 5;
};
_______________ _______
is &m_vFoo[5] the same as FifthElement(m_ vFoo) ? Allways?
Comment