I am trying to catch this exception but am unable to do so :
#include <unordered_map>
#include <iostream>
#include <exception>
int main() {
std::unordered_map<int, std::string> x;
auto it = x.end();
try { *it; }
catch (const std::exception& exception) {
std::cout << "BIG FAT ERROR" << std::endl;
}
}