|
Boost Users : |
From: Igor R (boost.lists_at_[hidden])
Date: 2008-07-11 09:15:34
> You can use boost::fusion::vector (or boost::tuple) as a
> container. You can use boost::fusion::for_each to iterate
> through it (there are other algorithms in fusion of course).
> <...>
> int main() {
> using namespace boost::fusion;
> vector<square, circle, triangle, square> v;
> for_each(v, show());
> }
>
> HTH,
> Roman Perepelitsa.
Correct me if i'm mistaken, but fusion::vector<some_types> contains
*one* element of each some_types' type, while
std::vector<boost::<variant<some_types> > > contains any number of
elements of some_types, right?
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