Tkrzw
Public Member Functions | List of all members
tkrzw::StdIndexStr::RecordComparator Struct Referencefinal

Comparator for sorting records. More...

#include <tkrzw_index.h>

Public Member Functions

bool operator() (const std::string &lhs, const std::string &rhs) const
 Compares two records. More...
 

Detailed Description

Comparator for sorting records.

Member Function Documentation

◆ operator()()

bool tkrzw::StdIndexStr::RecordComparator::operator() ( const std::string &  lhs,
const std::string &  rhs 
) const

Compares two records.

Parameters
lhsThe first record.
rhsThe second record.
Returns
True if the first one is prior.