Click here to Skip to main content
15,891,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
Richard MacCutchan2-Dec-09 12:38
mveRichard MacCutchan2-Dec-09 12:38 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
doug252-Dec-09 12:46
doug252-Dec-09 12:46 
AnswerRe: implementation of a key value array (not using std::map) ? Pin
Stuart Dootson2-Dec-09 22:57
professionalStuart Dootson2-Dec-09 22:57 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
doug255-Dec-09 11:47
doug255-Dec-09 11:47 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
Stuart Dootson5-Dec-09 11:59
professionalStuart Dootson5-Dec-09 11:59 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
doug255-Dec-09 15:54
doug255-Dec-09 15:54 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
Stuart Dootson6-Dec-09 0:22
professionalStuart Dootson6-Dec-09 0:22 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
doug256-Dec-09 13:07
doug256-Dec-09 13:07 
Thanks very much for posting this.

unfortunatly the performance isn't as fast as using a map.

for getting the values of 10000 elements using associativeVector with int keys, the time taken was in the range of 0.7 - 0.8 seconds compared with 0.06 seconds using a map.

i don't know how the implementation of a map works but it seems to be the fastest method for doing key lookups.

thanks again. Seeing the associative vector method was very useful.
GeneralRe: implementation of a key value array (not using std::map) ? Pin
Stuart Dootson6-Dec-09 13:41
professionalStuart Dootson6-Dec-09 13:41 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
doug256-Dec-09 14:20
doug256-Dec-09 14:20 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
Stuart Dootson6-Dec-09 14:37
professionalStuart Dootson6-Dec-09 14:37 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
doug256-Dec-09 15:07
doug256-Dec-09 15:07 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
Stuart Dootson7-Dec-09 22:57
professionalStuart Dootson7-Dec-09 22:57 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
doug258-Dec-09 3:07
doug258-Dec-09 3:07 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
Stuart Dootson8-Dec-09 5:59
professionalStuart Dootson8-Dec-09 5:59 
GeneralRe: implementation of a key value array (not using std::map) ? Pin
doug258-Dec-09 17:01
doug258-Dec-09 17:01 
Questionre: probelms erasing a multimap entry Pin
Alan Kurlansky2-Dec-09 9:54
Alan Kurlansky2-Dec-09 9:54 
AnswerRe: re: probelms erasing a multimap entry Pin
«_Superman_»2-Dec-09 12:25
professional«_Superman_»2-Dec-09 12:25 
GeneralRe: re: probelms erasing a multimap entry Pin
Alan Kurlansky3-Dec-09 2:51
Alan Kurlansky3-Dec-09 2:51 
QuestionTransparentBlt doesn't mask transparent color with 4-bit and 8-bit source bitmaps Pin
sashoalm2-Dec-09 8:53
sashoalm2-Dec-09 8:53 
AnswerRe: TransparentBlt doesn't mask transparent color with 4-bit and 8-bit source bitmaps Pin
Richard MacCutchan2-Dec-09 12:01
mveRichard MacCutchan2-Dec-09 12:01 
GeneralRe: TransparentBlt doesn't mask transparent color with 4-bit and 8-bit source bitmaps Pin
Rozis2-Dec-09 12:33
Rozis2-Dec-09 12:33 
GeneralRe: TransparentBlt doesn't mask transparent color with 4-bit and 8-bit source bitmaps Pin
Richard MacCutchan2-Dec-09 13:07
mveRichard MacCutchan2-Dec-09 13:07 
GeneralUsing a palette Pin
sashoalm2-Dec-09 17:43
sashoalm2-Dec-09 17:43 
GeneralRe: Using a palette Pin
Richard MacCutchan2-Dec-09 23:43
mveRichard MacCutchan2-Dec-09 23:43 

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.