What am I doing wrong?
I've missed the boat on multiset. how would one insert 'char' key values for a multiset, rather than standard key values as index for value values...(key,value) #include <iostream> #include <vector> #include <set> #include <cstdlib> #include <algorithm> #include <iterator> int main(){ std::vector<int> v(3200,rand()%100); std::multiset<char,int> mset; std::multiset<char,int>::iterator msetIt; std::cout<<"copied vector v to multiset mset: "<<std::endl; cpyVecToMSet(mset); for(msetIt;msetIt != mset.end();msetIt++){ std::cout<<*msetIt<<" "; }; return 0; } std::multiset<char,int> cpyVecToMSet(std::vector<int> &vect){ std::multiset<char, int> tmpMSet(vect.begin(),vect.end()); return tmpMSet; };