Top "Stdmap" questions

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

C++ std::map of template-class values

I'm attempting to declare a Row and a Column class, with the Row having a private std::map with values …

c++ templates methods stdmap
Does std::map::iterator return a copy of value or a value itself?

I'm trying to create a map inside a map: typedef map<float,mytype> inner_map; typedef map<…

c++ iterator stdmap
C++ Thread-Safe Map

Does anyone know where I can find an implimentation that wraps a std::map and makes it thread safe? When …

c++ dictionary collections thread-safety stdmap
How can I use a custom type as key for a map in C++?

I am trying to assign a custom type as a key for std::map. Here is the type which I …

c++ struct key operator-overloading stdmap
Thread safety of std::map for read-only operations

I have a std::map that I use to map values (field ID's) to a human readable string. This map …

c++ multithreading stl thread-safety stdmap
Can I access the elements in a c++ std::map by an integer index?

I have a map of elements that I would like to iterate through. Of course, the standard way to do …

c++ dictionary iterator openmp stdmap
Is it impossible to use an STL map together with a struct as key?

I have the following code: struct Node { int a; int b; }; Node node; node.a = 2; node.b = 3; map<int, …

c++ dictionary stl containers stdmap
How can I increase the performance in a map lookup with key type std::string?

I'm using a std::map (VC++ implementation) and it's a little slow for lookups via the map's find method. The …

c++ dictionary optimization visual-c++ stdmap
Partial match for the key of a std::map

I have an std::map and I want to search for a key using a substring. For example, I have …

c++ dictionary search containers stdmap
std::map default value for build-in type

Recently, I was confused by the std::map operator[] function. In the MSDN library, it says: "If the argument key …

c++ default-value stdmap