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)
{...}