MAP????
-
I need to handle more than 1 lakhs entries inside a data structure. I am thinking to use std::map becuase of ease of searching. Is map can hold more than 1 lakhs entires? If not what data strucure should I use to perform fast search opeartion?
john5632 wrote:
I am thinking to use std::map becuase of ease of searching.
Is map can hold more than 1 lakhs entires? If not what data strucure should I use to perform fast search opeartion?yes map can hold such a large data-structure, does your computer has enough memory for same first, second you can check that yourself by writing small program like:-
map intMap; for(int i=0;i<100000;i++) { intMap.insert(map::value\_type(i,i)); }
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
I need to handle more than 1 lakhs entries inside a data structure. I am thinking to use std::map becuase of ease of searching. Is map can hold more than 1 lakhs entires? If not what data strucure should I use to perform fast search opeartion?
http://msdn.microsoft.com/en-us/library/y1z022s1(v=VS.80).aspx[^] will be helpful to choose the collection class for your need