CXXR (C++ R) API
Public Member Functions
CXXR::String::Comparator Class Reference

Comparison object for CXXR::String. More...

#include <String.h>

List of all members.

Public Member Functions

 Comparator (bool na_last=true)
bool operator() (const String *l, const String *r) const
 Comparison operation.

Detailed Description

Comparison object for CXXR::String.

STL-compatible comparison class for comparing CXXR::String objects.


Constructor & Destructor Documentation

CXXR::String::Comparator::Comparator ( bool  na_last = true)
inlineexplicit
Parameters:
na_lastif true, the 'not available' string will come after all other strings in the sort ordering; if false, it will come before all other strings.

Member Function Documentation

bool CXXR::String::Comparator::operator() ( const String l,
const String r 
) const

Comparison operation.

Parameters:
lnon-null pointer to a String.
rnon-null pointer to a String.
Returns:
true iff l < r in the defined ordering.

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