Home > Back-end >  STD c map <key, value> why can use square brackets [] to create? Where is the usage of informa
STD c map <key, value> why can use square brackets [] to create? Where is the usage of informa

Time:12-16

Map M [4];
Came across a piece of code, feel very strange, just try, actually created a map, the capacity of 4 supposedly overloaded [] is not accessed through the key, have a great spirit

CodePudding user response:

Ah, this,,, this is the array type defines a map?

CodePudding user response:

Define the size? You can try also add the fifth

CodePudding user response:

Accessed through the key is to map object [] to define an array of time at the back of the [] not to call. The operator
  • Related