Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost users][tuple] foreach with tuple
From: Igor R (boost.lists_at_[hidden])
Date: 2009-08-04 04:35:23


> #define foreach BOOST_FOREACH
> ....
> vector<tuple<int,int> > l_listLeftLines;
> ....
> foreach (boost::tuple<int,int>& i_pair, l_listLeftLines)
>     {
>        .....
>     }
>

typedef vector<tuple<int,int> > vec_type;
vec_type l_listLeftLines;
foreach (vec_type::reference i_pair, l_listLeftLines)
{...}


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