CStringLessThanFunctor Class Reference

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

#include <CStringLessThanFunctor.h++>

List of all members.

Public Member Functions

 CStringLessThanFunctor (bool caseSensitive=true) throw ()
 Construct a new CStringLessThanFunctor with the given case sensitivity.
bool operator() (const char *a, const char *b) const throw ()
 Compare two C strings.

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 ( bool  caseSensitive = true  )  throw ()

Construct a new CStringLessThanFunctor with the given case sensitivity.

Parameters:
caseSensitive true if string comparisons should be case-sensitive, false otherwise.

Member Function Documentation

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

Compare two C strings.

Returns:
true if the strings are equal, false otherwise.

The documentation for this class was generated from the following files:
Generated on Sat Nov 26 16:49:08 2011 for libcommonc++ by  doxygen 1.6.3