|
cpp-bencoding
|
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... | |
Comparator of keys for the dictionary.
It compares the instances of BString inside smart pointers by their value rather than by their address.
| bool bencoding::BDictionary::BStringByValueComparator::operator() | ( | const std::shared_ptr< BString > & | lhs, |
| const std::shared_ptr< BString > & | rhs | ||
| ) | const |
Checks if lhs->value() < rhs->value().
true if lhs->value() < rhs->value(), false otherwise.
1.8.14