#dictionaries in C++
9 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
map/unordered_map
Dictionaries in C++ is called as Map.
Use std::map or std::unordered_map
I would argue though, using the ordered version is often somewhat rare
as often you do not care about the order
here's a simple idea: instead of putting your buttons into a container just so that you can then access them via a string literal as name, why not just do
Button pause;
```i.e., just give the thing an actual name?
well since there is about 10 of them it'd make sense to have them in a container, so i can iterate over all of them to call their update functions
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.