Top "Stdmap" questions

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

How can I set up a map with string as key and ostream as value?

I am trying to use the map container in C++ in the following way: The Key is a string and …

c++ dictionary stdmap ostream
Intersection of two `std::map`s

Given that I have two std::maps, say: map<int, double> A; map<int, double> B; …

c++ dictionary std stdmap c++-standard-library
What is difference between const and non const key?

What is the difference between the following two lines? map<int, float> map_data; map<const int, …

c++ key language-lawyer key-value stdmap
Shallow/deep copy of std::map

How would I best implement these? I thought of something like this: using namespace std; shape_container shape_container::clone_…

c++ deep-copy stdmap shallow-copy
Why does std::unordered_map have a reserve method?

According to this you cannot reserve space for std::map: No, the members of the map are internally stored in …

c++ memory visual-c++ stdmap
How to std::map<enum class, std::string>?

I am trying to std::map, with an enum class and a std::string but I am getting some error. …

c++ enums stdmap enum-class
map<string, vector <pair<int, int> > > pushing back into pair?

I have this map<string, vector <pair<int, int> > > variable and I'm pushing back …

c++ vector stdmap std-pair push-back
Problem with std::map and std::pair

I have a small program I want to execute to test something #include <map> #include <iostream> …

c++ stl operator-overloading stdmap std-pair
Boost.Bind to access std::map elements in std::for_each

I've got a map that stores a simple struct with a key. The struct has two member functions, one is …

c++ boost bind stdmap foreach
Java equivalent of C++ std::map?

I'm looking for a Java class with the characteristics of C++ std::map's usual implementation (as I understand it, a …

java collections binary-tree stdmap