Boost logo

Boost Users :

From: Stephen Gross (sgross_at_[hidden])
Date: 2005-08-04 14:40:18


Let's say I've got some mpl::vector. If I grab a begin iterator on it, and
increment that iterator past the elements in the vector, what happens? For
instance:

==================================================
using boost;
typedef mpl::vector<int, char> t;
typedef mpl::begin<t>::type element0; // Should deref to 'int'
typedef mpl::next<element0>::type element1; // Should deref to 'char'
typedef mpl::next<element1>::type element2; // What happens?
typedef mpl::next<element2>::type element3; // "
typedef mpl::next<element3>::type element4; // "
==================================================

Will boost let me iterate past the 'end' of an mpl::vector? Am I supposed to
take care of bounds checking?

Thanks,
--Steve

Stephen Gross
Case Western School of Medicine
Cleveland, OH

"By Grabthar's hammer, by the sons of Worvan, you shall be avenged." - Dr.
Lazarus


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net