29 inline bool operator()(
const std::string& v1,
const std::string& v2 )
const {
30 const std::string::size_type s1 = v1.size();
31 const std::string::size_type s2 = v2.size();
32 return s1 < s2 ? false : s2 < s1 ? true : ( v1 < v2 );
36 typedef std::map<std::string, std::string, CmpCC>
MapCC;
38 typedef std::set<std::string, CmpCC>
SetCC;
47 std::string
cc(
const std::string& decay,
const MapCC& map_ );
56 std::string
cc(
const std::string& decay,
const std::map<std::string, std::string>& map_ );
std::map< std::string, std::string, CmpCC > MapCC
the actual type of CC-map
std::set< std::string, CmpCC > SetCC
the actual type of CC-set
std::string cc(const std::string &decay, const MapCC &map_)
simple function to make charge conjugated inside the original string.
a bit specific comparison of strings, useful for ordering according to the length as the primary para...
bool operator()(const std::string &v1, const std::string &v2) const
the only one essential method The most long string is "less", otherwise the standard comparison is ap...