22 Aug
2008
22 Aug
'08
1:39 a.m.
On Aug 21, 2008, at 7:16 AM, Zeljko Vrba wrote:
I'm operating on two vectors of pairs of numbers, currently represented by std::pair
. The first vector is a list of (net,pin) pairs, while the second vector is a list of (pin, net) pairs. In order to raise a bit the understandability / abstraction level of my code, I think that it'd be nice to be able to write at_key<pin>(x) and at_key<net>(x) instead of x.first or using tie().
Looking at fusion manual, it seems that of all the containers, map suits the purpose: [TRUNCATE]
Are the two vectors supposed to represent the same relation? If so, could Boost's BiMap help? -- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT hotmail DOT com