Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

find in unordered_map c++

  std::unordered_map<std::string,double>::const_iterator got = mymap.find (input);

  if ( got == mymap.end() )
    std::cout << "not found";
  else
    std::cout << got->first << " is " << got->second;
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #find
ADD COMMENT
Topic
Name
9+8 =