libcommonc++
0.7
|
A "less than" comparator for C strings. More...
#include <CStringLessThanFunctor.h++>
Public Member Functions | |
CStringLessThanFunctor (bool caseSensitive=true) | |
Construct a new CStringLessThanFunctor with the given case sensitivity. More... | |
bool | operator() (const char *a, const char *b) const |
Compare two C strings. More... | |
A "less than" comparator for C strings.
May be used as a template argument to std::map for maps which use C string keys.
CStringLessThanFunctor | ( | bool | caseSensitive = true | ) |
Construct a new CStringLessThanFunctor with the given case sensitivity.
caseSensitive | true if string comparisons should be case-sensitive, false otherwise. |
bool operator() | ( | const char * | a, |
const char * | b | ||
) | const |
Compare two C strings.