cppreference.com
Run on Compiler Explorer
main: () = { example: std::multimap = ( std::make_pair(1, 'a'), std::make_pair(2, 'b')); for (2, 5) do (x) { if example.contains(x) { std::cout << "(x)$: Found\n"; } else { std::cout << "(x)$: Not found\n"; } } }
2: Found 5: Not found