CUnsensitiveSStringLessPred Struct Reference

#include <sstring.h>


Detailed Description

Instead of overriding std::less, please use the following predicate. For example, declare your map as: std::map<NLMISC::CSString, CMyDataClass, NLMISC::CUnsensitiveSStringLessPred> MyMap; Caution: a map declared without CUnsensitiveSStringLessPred will behave as a standard string map.

See also:
also CUnsensitiveStrLessPred in misc/string_conversion.h for a similar predicate with std::string.

Definition at line 696 of file sstring.h.

Public Member Functions

bool operator() (const NLMISC::CSString &x, const NLMISC::CSString &y) const


Member Function Documentation

bool CUnsensitiveSStringLessPred::operator() const NLMISC::CSString x,
const NLMISC::CSString y
const [inline]
 

Definition at line 698 of file sstring.h.

References x, and y.

00698 { return x.icompare(y); }


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 06:43:54 2004 for NeL by doxygen 1.3.6