CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/DQM/TrackerCommon/src/generic.h

Go to the documentation of this file.
00001 #ifndef _generic_h
00002 #define _generic_h_
00003 
00004 #include <map>
00005 #include <string>
00006 
00007 std::string get_from_multimap(std::multimap<string, string> &mymap, std::string key)
00008 {
00009   std::multimap<std::string, std::string>::iterator it;
00010   it = mymap.find(key);
00011   if (it != mymap.end())
00012     {
00013       return (it->second);
00014     }
00015   return "";
00016 }
00017 
00018 #endif