Click here to Skip to main content
15,908,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using CMap Pin
laiju4-Jul-05 18:42
laiju4-Jul-05 18:42 
GeneralRe: using CMap Pin
Christian Graus4-Jul-05 19:13
protectorChristian Graus4-Jul-05 19:13 
GeneralRe: using CMap Pin
Ravi Bhavnani4-Jul-05 19:15
professionalRavi Bhavnani4-Jul-05 19:15 
GeneralRe: using CMap Pin
Christian Graus4-Jul-05 19:20
protectorChristian Graus4-Jul-05 19:20 
GeneralRe: using CMap Pin
Ravi Bhavnani4-Jul-05 19:26
professionalRavi Bhavnani4-Jul-05 19:26 
GeneralRe: using CMap Pin
Christian Graus4-Jul-05 19:33
protectorChristian Graus4-Jul-05 19:33 
GeneralRe: using CMap Pin
Ravi Bhavnani4-Jul-05 19:37
professionalRavi Bhavnani4-Jul-05 19:37 
GeneralRe: using CMap Pin
PJ Arends4-Jul-05 21:39
professionalPJ Arends4-Jul-05 21:39 
I have used map and multimap, and read about but never used hash_map and hash_multimap. What exactly do you mean by a bi-directional map? I always thought bi-directional containers were containers that had both forward and reverse iterators, but that definition does not seem to be what is being discussed here. What I think you mean is a map where both the key and value are unique, and has a find() member that can find either the key or the value. Is there such a beast? If so what is it called and where can I get it?

Currently I am just using a map for this functionality, I check to make sure the value is unique before I add a new value to the map, and I sequentially iterate the map, comparing values, until I find the keyvalue I am looking for. If there is a better implementation out there I would be interested in learning about it.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04

"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05

Within you lies the power for good - Use it!
GeneralRe: using CMap Pin
Ravi Bhavnani5-Jul-05 4:59
professionalRavi Bhavnani5-Jul-05 4:59 
GeneralRe: using CMap Pin
PJ Arends5-Jul-05 10:33
professionalPJ Arends5-Jul-05 10:33 
GeneralRe: using CMap Pin
Joaquín M López Muñoz5-Jul-05 11:04
Joaquín M López Muñoz5-Jul-05 11:04 
GeneralRe: using CMap Pin
PJ Arends5-Jul-05 11:17
professionalPJ Arends5-Jul-05 11:17 
GeneralRe: using CMap Pin
Maximilien5-Jul-05 2:51
Maximilien5-Jul-05 2:51 
GeneralTaskbar Application Pin
zhaopi4-Jul-05 18:28
zhaopi4-Jul-05 18:28 
GeneralRe: Taskbar Application Pin
Christian Graus4-Jul-05 18:30
protectorChristian Graus4-Jul-05 18:30 
GeneralRe: Taskbar Application Pin
zhaopi4-Jul-05 18:32
zhaopi4-Jul-05 18:32 
GeneralRe: Taskbar Application Pin
Christian Graus4-Jul-05 19:14
protectorChristian Graus4-Jul-05 19:14 
Generalhandling WM_MOUSEWHEEL between two views Pin
retro_coder4-Jul-05 18:10
retro_coder4-Jul-05 18:10 
GeneralRe: handling WM_MOUSEWHEEL between two views Pin
Christian Graus4-Jul-05 18:30
protectorChristian Graus4-Jul-05 18:30 
GeneralRe: handling WM_MOUSEWHEEL between two views Pin
Blake Miller5-Jul-05 5:28
Blake Miller5-Jul-05 5:28 
GeneralVisual C++ to Visual C++ .NET Pin
hcmuns4-Jul-05 17:44
susshcmuns4-Jul-05 17:44 
GeneralRe: Visual C++ to Visual C++ .NET Pin
Christian Graus4-Jul-05 17:58
protectorChristian Graus4-Jul-05 17:58 
GeneralRe: Visual C++ to Visual C++ .NET Pin
badal_akr4-Jul-05 20:22
badal_akr4-Jul-05 20:22 
GeneralWord Addin specific question Pin
Alex Korchemniy4-Jul-05 10:31
Alex Korchemniy4-Jul-05 10:31 
Generalabt capturing a desktop Pin
Member 19676244-Jul-05 8:09
Member 19676244-Jul-05 8:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.