
13 Jul
2007
13 Jul
'07
6:16 p.m.
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_a...
And I found that this felt like a natural way to define pairs.
It's the natural lisp way.