C++ making Hash of Arrays -


i have problem creation of hash of arrays. need single key - multi data system:

multimap <type, vector<type> > var; 

but how can add elements vector?

example: key = 3;

now need append elements vector key 3.

creating temp-vector not answer because don't know when need input element vector current key.

sorry, understand problem. need fast-access struct, operate ~50,000 words length ~20 each. , need tree. also, have question: how quick stl-structures, vector,map,multimap , other?

to find answer question can @ slides under point 6. @ site https://ece.uwaterloo.ca/~ece250/lectures/slides/

hope helps!


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -