Re: [boost] Is there a one-to-one map class in boost?

18 Jul
2006
18 Jul
'06
2:16 a.m.
On 7/17/06, Wang Weiwei <wwwang@ccsdl.org> wrote:
Hello,
Now I'm finding a one-to-one map class, say map1, that support the following syntax:
map1 m;
m.insert(std::make_pair(k1, v1)); ... key k; value v;
v = m[k]; k = m[v];
I know a pair of std::map could provide such functionality. But I think a single obj, if that class exists, would be more elegant.
Is there such a class in boost?
Look for multi_index library. There are examples of such usage.
Thanks. My god, boost is really a vault. Thanks again to all of the contributors.
Thanks Max
-- Felipe Magno de Almeida
6908
Age (days ago)
6908
Last active (days ago)
0 comments
1 participants
participants (1)
-
Wang Weiwei