20 #ifndef __stl_functors_h__
21 #define __stl_functors_h__
29 bool operator()(std::string *s1, std::string *s2)
const {
34 #endif // LESS_STRING_P
36 #ifndef LESS_CONST_STRING_P
38 bool operator()(
const std::string *s1,
const std::string *s2)
const {
42 #define LESS_CONST_STRING_P
43 #endif // LESS_CONST_STRING_P
45 #ifndef LESS_CONST_CHAR_P
49 return strcmp(s1, s2) < 0;
52 #define LESS_CONST_CHAR_P
53 #endif // LESS_CONST_CHAR_P
55 #ifndef LESS_CONST_FLOAT_P
58 bool operator()(
const float *n1,
const float *n2)
const {
62 #define LESS_CONST_FLOAT_P
63 #endif // LESS_CONST_FLOAT_P
65 #ifndef EQUAL_TO_CONST_CHAR_P
69 return strcmp (s1, s2) == 0;
72 #define EQUAL_TO_CONST_CHAR_P
73 #endif // EQUAL_TO_CONST_CHAR_P
75 #ifndef EQUAL_TO_STRING_P
78 bool operator()(
const std::string *s1,
const std::string *s2)
const {
82 #define EQUAL_TO_STRING_P
83 #endif // EQUAL_TO_STRING_P
85 #ifndef LESS_CONST_STRING_R
87 bool operator() (
const std::string &s1,
const std::string &s2) {
91 #define LESS_CONST_STRING_R
92 #endif // EQUAL_TO_STRING_P
94 #endif // __stl_functors_h__
bool operator()(const std::string *s1, const std::string *s2) const
bool operator()(const char *s1, const char *s2) const
bool operator()(const float *n1, const float *n2) const
bool operator()(std::string *s1, std::string *s2) const
bool operator()(const std::string *s1, const std::string *s2) const
bool operator()(const char *s1, const char *s2) const