You need world[src]
since that is the name of your map variable, that should work.
More Related Contents:
- converting a variable name to a string in C++
- Map C++ Sort and Insert elements by value
- How to sort elements of pairs inside vector?
- How can I use std::maps with user-defined types as key?
- Why can’t I compile an unordered_map with a pair as key?
- How can I loop through a C++ map of maps?
- Sorting std::map using value
- How to retrieve all keys (or values) from a std::map and put them into a vector?
- Const map element access
- How to find if a given key exists in a C++ std::map
- How to use range-based for() loop with std::map?
- std::map emplace without copying value
- What is the preferred/idiomatic way to insert into a map?
- How can I sort a std::map first by value, then by key?
- How can I modify values in a map using range based for loop?
- insert vs emplace vs operator[] in c++ map
- Sorting a std::vector by the string?
- What is the fastest way to change a key of an element inside std::map
- How can I use an array as map value?
- Translating python dictionary to C++
- What is the difference between using a struct with two fields and a pair?
- C++ Thread-Safe Map
- How can I sort an STL map by value?
- how do you make a heterogeneous boost::map?
- Why was pair range access removed from C++11?
- std::map thread-safety
- pair pair as key of unordered_map issue
- What would a std::map extended initializer list look like?
- Why Can’t I store references in a `std::map` in C++?
- Is it possible to implement lock free map in C++