What is the best way to map two values to one key?
ie An item with a value and bool.
Tried using:
std::map
Either use std::pair<> as you did, or make a custom struct containing the values you want to store. I'd do the latter in most cases, as the values then have names more descriptive than first and second.
std::pair<>
first
second