Can I use vector in a map in STL?

Posted by skydoor on Stack Overflow See other posts from Stack Overflow or by skydoor
Published on 2010-06-06T19:32:57Z Indexed on 2010/06/06 19:42 UTC
Read the original article Hit count: 119

Filed under:
|

Can I declare a map like this

map<string, vector<string>> mymap;

I thought it is applicable.

However, it shows not.

I tried

map<string, vector<string>*> mymap;

and then it is OK

What's the rule of this?

© Stack Overflow or respective owner

Related posts about c++

Related posts about stl