Boost logo

Boost :

From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2007-07-13 14:16:41


Jake Voytko wrote:
> Perhaps "Standard" was a bad term, but rather, "Boost accepted". While
> perusing the Boost.Bimap docs, I found that the following syntax is allowed
> for defining a Bimap:
>
> typedef bimap<int,std::string> bm;
> bm b = list_of< bm::relation > (1,"one") (2,"two") (3,"three");
>
> http://cablemodem.fibertel.com.ar/mcape/boost/libs/bimap/boost_bimap/bimap_and_boost/boost_libraries_that_work_well_with_boost_bimap.html#boost_bimap.bimap_and_boost.boost_libraries_that_work_well_with_boost_bimap.boost_assign
>
> And I found that this felt like a natural way to define pairs.

It's the natural lisp way.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk