1. #include<unordered_map>
    2. unordered_map<int,int> mp;
    3. //判断key是否存在于map中
    4. if(mp.find(1)!=mp.end()){
    5. }