Top "Map" questions

A dictionary maps keys to values allowing efficient retrieval of values by keys.

Using a STL map of function pointers

I developed a scripting engine that has many built-in functions, so to call any function, my code just went into …

c++ stl map function-pointers
Getting the union of two maps in go

I have a recursive function that creates objects representing file paths (the keys are paths and the values are info …

map go union
How do you initialize a map which takes a struct as value?

I am using a map as an associative array of IDs -> value, where the value is a struct …

c++ map struct initialization associative-array
How to iterate an ArrayList inside a HashMap using JSTL?

I have a map like this, Map<Integer,ArrayList<Object>> myMap = new LinkedHashMap<Integer,ArrayList&…

java jsp map arraylist jstl
C++ inserting unique_ptr in map

I have a C++ object of type ObjectArray typedef map<int64_t, std::unique_ptr<Class1>> …

c++ pointers map stl unique-ptr
How can I use map and receive an index as well in Scala?

Is there any List/Sequence built-in that behaves like map and provides the element's index as well?

scala functional-programming map
remove_if equivalent for std::map

I was trying to erase a range of elements from map based on particular condition. How do I do it …

c++ stl map
Is using java Map.containsKey() redundant when using map.get()

I have been wondering for some time whether it is allowable within best practice to refrain from using the containsKey() …

java performance code-readability map
Javascript: Checking if an object has no properties or if a map/associative-array is empty

Possible Duplicate: How do I test for an empty Javascript object from JSON? Is there an easy way to check …

javascript map associative-array is-empty object-property
converting a variable name to a string in C++

I'd like to output some data to a file. For example assume I have two vectors of doubles: vector<…

c++ string variables map std-pair