check if key exists in map c++

C++
if ( m.find("f") == m.end() ) {
  // not found
} else {
  // found
}
Source

Also in C++: