$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Daryle Walker (darylew_at_[hidden])
Date: 2008-08-21 21:39:01
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<unsigned, unsigned>. 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