libcommonc++  0.7
CStringLessThanFunctor Class Reference

A "less than" comparator for C strings. More...

#include <CStringLessThanFunctor.h++>

Inheritance diagram for CStringLessThanFunctor:
Collaboration diagram for CStringLessThanFunctor:

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...
 

Detailed Description

A "less than" comparator for C strings.

May be used as a template argument to std::map for maps which use C string keys.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ CStringLessThanFunctor()

CStringLessThanFunctor ( bool  caseSensitive = true)

Construct a new CStringLessThanFunctor with the given case sensitivity.

Parameters
caseSensitivetrue if string comparisons should be case-sensitive, false otherwise.

Member Function Documentation

◆ operator()()

bool operator() ( const char *  a,
const char *  b 
) const

Compare two C strings.

Returns
true if the strings are equal, false otherwise.

The documentation for this class was generated from the following files: