All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ELset.h
Go to the documentation of this file.
1 #ifndef messagefacility_Utilities_ELset_h
2 #define messagefacility_Utilities_ELset_h
3 
4 // ----------------------------------------------------------------------
5 //
6 // ELset.h Provides a set class with the semantics of std::set.
7 // Customizers may substitute for this class to provide either
8 // a set with a different allocator, or whatever else.
9 //
10 // The following elements of set semantics are relied upon:
11 // insert()
12 // clear()
13 // find() which returns an iterator which may or may not be .end()
14 //
15 // ----------------------------------------------------------------------
16 
17 #include <set>
18 #include <string>
19 
20 namespace mf {
21  namespace service {
22 
23  struct ELsetS {
25  ELsetS(std::string const& ss) : s{ss} {}
26  bool
27  operator<(ELsetS const& t) const
28  {
29  return (s < t.s);
30  }
31  };
32 
33  using ELset_string = std::set<ELsetS>;
34  }
35 }
36 
37 #endif /* messagefacility_Utilities_ELset_h */
38 
39 // Local variables:
40 // mode: c++
41 // End:
std::string string
Definition: nybbler.cc:12
std::string s
Definition: ELset.h:24
bool operator<(ELsetS const &t) const
Definition: ELset.h:27
std::set< ELsetS > ELset_string
Definition: ELset.h:33
ELsetS(std::string const &ss)
Definition: ELset.h:25