CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/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