Is it possible to declare a card like
map<string, vector<string>> mymap;
I thought it was applicable.
However, this does not show.
I tried
map<string, vector<string>*> mymap;
and then ok
What is the rule of this?
You need extra space:
map<string, vector<string> > mymap; ^ see the extra space
Without extra space, it is >>parsed as a right shift operator.
>>
The rules have been changed in C ++ 0x, which makes extra space unnecessary. Some compilers (for example, Visual C ++ 2008 and higher) no longer require additional space.
You can, as James said. Stupid C ++ parsing :)
map<string, vector<string> > multimap<string, string>. A multimap . , .
map<string, vector<string> >
multimap<string, string>
Source: https://habr.com/ru/post/1748761/More articles:EXC_BAD_ACCESS in CFAttributedStringSetAttribute and NSNumber? - objective-cSQL starting question: querying gold and silver tag icons in Stack Exchange Data Explorer - sqlAre compilers smart enough to detect a no-op function? - c ++JTextField that has internal fields or formatted format, something like ip field in windows - javaBuilding a triangle based on coordinates on a map - mathЗаблокировать веб-звонки в Scala - javaUsing jQuery instead of AJAX to simulate UpdatePanel functionality - jquerytrying to solve between asp.net and jsp - javaHow to save CALayer, CATiledLayer sublevel, zoom after scaling? - iphoneDrag and Drop in Silverlight with F # and Asynchronous Workflows - asynchronousAll Articles