NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Static Private Member Functions | List of all members
Dictionary::DictItemLexicalOrder Class Reference

Helper class for lexicographical sorting of dictionary entries. More...

Public Member Functions

bool operator() (const std::pair< Name, Token > &lhs, const std::pair< Name, Token > &rhs) const
 

Static Private Member Functions

static bool nocase_compare (char c1, char c2)
 

Detailed Description

Helper class for lexicographical sorting of dictionary entries.

Provides comparison operator for ascending, case-insensitive lexicographical ordering.

See also
This is a simplified version of the class presented in N.M.Josuttis, The C++ Standard Library, Addison Wesley, 1999, ch. 6.6.6.

Member Function Documentation

bool Dictionary::DictItemLexicalOrder::nocase_compare ( char  c1,
char  c2 
)
staticprivate

Referenced by operator()().

bool Dictionary::DictItemLexicalOrder::operator() ( const std::pair< Name, Token > &  lhs,
const std::pair< Name, Token > &  rhs 
) const
inline

References nocase_compare().


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