CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/FWCore/MessageService/interface/ELset.h

Go to the documentation of this file.
00001 #ifndef FWCore_MessageService_ELset_h
00002 #define FWCore_MessageService_ELset_h
00003 
00004 
00005 // ----------------------------------------------------------------------
00006 //
00007 // ELset.h     Provides a set class with the semantics of std::set.
00008 //              Customizers may substitute for this class to provide either
00009 //              a set with a different allocator, or whatever else.
00010 //
00011 // The following elements of set semantics are relied upon:
00012 //      insert()
00013 //      clear()
00014 //      find() which returns an iterator which may or may not be .end()
00015 //
00016 // ----------------------------------------------------------------------
00017 
00018 #include "FWCore/MessageLogger/interface/ELstring.h"
00019 
00020 #include <set>
00021 
00022 
00023 namespace edm {       
00024 namespace service {       
00025 
00026 
00027 struct ELsetS {
00028   std::string s;
00029   ELsetS (const std::string & ss) : s(ss) {}
00030   bool operator< (const ELsetS & t) const { return (s<t.s); }
00031 };
00032 
00033 typedef std::set<ELsetS> ELset_string;
00034 
00035 // ----------------------------------------------------------------------
00036 
00037 
00038 }        // end of namespace service
00039 }        // end of namespace edm
00040 
00041 
00042 #endif // FWCore_MessageService_ELset_h