Top "Stdmap" questions

std::map is a class in the C++ Standard Library.

How can I merge two STL maps?

How can I merge two STL maps into one? They both have the same key and value types (map<…

c++ merge stl maps stdmap
What is the best way to use two keys with a std::map?

I have a std::map that I'm using to store values for x and y coordinates. My data is very …

c++ dictionary stl key stdmap
How can I use an array as map value?

I'm trying to create a map, where the key is an int, and the value is an array as follows: …

c++ arrays dictionary containers stdmap
C++ map<std::string> vs map<char *> performance (I know, "again?")

I was using a map with a std::string key and while everything was working fine I wasn't getting the …

c++ performance dictionary stdmap
advantages of std::set vs vectors or maps

This may be a stupid question, I am quite new to C++ and programming in general. I wish to understand …

c++ stdvector stdmap stdset
Last key in a std::map

I am looking for the highest key value (a defined by the comparison operator) of a std::map. Is this …

c++ iterator stdmap
How can I traverse/iterate an STL map?

I want to traverse an STL map. I don't want to use its key. I don't care about the ordering, …

c++ dictionary stl traversal stdmap
std::map thread-safety

Is reference to object in std::map is thread safe? std::map< std::string, Object > _objects; map can …

c++ multithreading map stdmap
C++ std::map items in descending order of keys

How cal I use std::map container with key value in descending order. As an example, if insert the following …

c++ sorting stdmap
How can I use a struct as key in a std::map?

I have the following code, but I get an error on on the last line: struct coord { int x, y; …

c++ c++11 stdmap