c++ unordered_map

#include 
#include 
 
int main()
{  
// simple comparison demo

    std::unordered_map exp= {{1,'b'},{2,'c'},{3,'d'}};
    
    auto search = exp.find(2);
    if(search !=exp.end()){
      std::cout<<"find the value"<

 

你可能感兴趣的:(c++)