Click here to Skip to main content
15,914,608 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL map question Pin
John M. Drescher3-Sep-02 4:33
John M. Drescher3-Sep-02 4:33 
GeneralRe: STL map question Pin
Alexandru Savescu3-Sep-02 22:20
Alexandru Savescu3-Sep-02 22:20 
GeneralRe: STL map question Pin
CodeGuy3-Sep-02 4:23
CodeGuy3-Sep-02 4:23 
GeneralRe: STL map question Pin
Joao Vaz3-Sep-02 4:56
Joao Vaz3-Sep-02 4:56 
GeneralRe: STL map question Pin
Alexandru Savescu3-Sep-02 22:23
Alexandru Savescu3-Sep-02 22:23 
GeneralRe: STL map question Pin
Todd Smith5-Sep-02 13:18
Todd Smith5-Sep-02 13:18 
GeneralRe: STL map question Pin
Jörgen Sigvardsson3-Oct-02 14:43
Jörgen Sigvardsson3-Oct-02 14:43 
GeneralRe: STL map question Pin
Jörgen Sigvardsson3-Oct-02 14:37
Jörgen Sigvardsson3-Oct-02 14:37 
You can always to this:
template <typename key_t, typename value_t>
class bidir_map {
	typedef map<key_t, value_t>	key_to_value_map;
	typedef map<value_t, key_t>	value_to_key_map;

	key_to_value_map	key_map;
	value_to_key_map	value_map;
 
	/* Implement map-interface here which manipulate
  	   key_map and value_map accordingly during inserts
	   and etc. 
	 */
};


Although, this may not be the most efficient implementation in terms of size. But if your collections is small, then this may be a cheap solution.

--
Please state the nature of your medical emergency.
GeneralIDL question Pin
Jeremy Pullicino2-Sep-02 23:00
Jeremy Pullicino2-Sep-02 23:00 
GeneralRe: IDL question Pin
Joaquín M López Muñoz3-Sep-02 2:49
Joaquín M López Muñoz3-Sep-02 2:49 
GeneralRe: IDL question Pin
Jeremy Pullicino3-Sep-02 3:44
Jeremy Pullicino3-Sep-02 3:44 
GeneralRe: IDL question Pin
Joaquín M López Muñoz3-Sep-02 4:04
Joaquín M López Muñoz3-Sep-02 4:04 
GeneralRe: IDL question Pin
Bill S3-Sep-02 4:24
professionalBill S3-Sep-02 4:24 
GeneralRe: IDL question Pin
Jeremy Pullicino3-Sep-02 5:13
Jeremy Pullicino3-Sep-02 5:13 
GeneralRe: IDL question Pin
Bill S3-Sep-02 5:21
professionalBill S3-Sep-02 5:21 
GeneralRe: IDL question Pin
Tom Wright5-Sep-02 7:36
Tom Wright5-Sep-02 7:36 
QuestionATL based COM fire-event client ? Pin
alma2-Sep-02 3:25
alma2-Sep-02 3:25 
AnswerRe: ATL based COM fire-event client ? Pin
Pavel Klocek2-Sep-02 6:20
Pavel Klocek2-Sep-02 6:20 
AnswerRe: ATL based COM fire-event client ? Pin
Todd Smith2-Sep-02 15:43
Todd Smith2-Sep-02 15:43 
GeneralA question about #define WIN32 and "sbrk" Pin
George Ma1-Sep-02 1:13
George Ma1-Sep-02 1:13 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
Stephane Rodriguez.1-Sep-02 2:15
Stephane Rodriguez.1-Sep-02 2:15 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
George Ma1-Sep-02 4:08
George Ma1-Sep-02 4:08 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
Stephane Rodriguez.1-Sep-02 4:21
Stephane Rodriguez.1-Sep-02 4:21 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
George Ma2-Sep-02 3:34
George Ma2-Sep-02 3:34 
GeneralRe: A question about #define WIN32 and "sbrk" Pin
Anders Molin1-Sep-02 5:01
professionalAnders Molin1-Sep-02 5:01 

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.