cpp-bencoding
Public Member Functions | List of all members
bencoding::BDictionary::BStringByValueComparator Class Reference

Comparator of keys for the dictionary. More...

Public Member Functions

bool operator() (const std::shared_ptr< BString > &lhs, const std::shared_ptr< BString > &rhs) const
 Checks if lhs->value() < rhs->value(). More...
 

Detailed Description

Comparator of keys for the dictionary.

It compares the instances of BString inside smart pointers by their value rather than by their address.

Member Function Documentation

◆ operator()()

bool bencoding::BDictionary::BStringByValueComparator::operator() ( const std::shared_ptr< BString > &  lhs,
const std::shared_ptr< BString > &  rhs 
) const

Checks if lhs->value() < rhs->value().

Returns
true if lhs->value() < rhs->value(), false otherwise.

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