|
Boost Users : |
Subject: Re: [Boost-users] using pairs with boost.foreach
From: Igor R (boost.lists_at_[hidden])
Date: 2009-10-22 06:31:19
> Is it possible to use an std::pair with boost.foreach?
typedef std::map<int, double> map_type;
map_type my_map;
//....
BOOT_FOREACH(map_type::reference pair, my_map)
{
pair.first = 1;
pair.second = 2.0;
}
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