how to find weather a key exist in a map or not code example
Example: check if a key is in a map
if ( m.find("f") == m.end() ) {
// not found
} else {
// found
}
if ( m.find("f") == m.end() ) {
// not found
} else {
// found
}