xrpld
Loading...
Searching...
No Matches
xrpl::NodeStore::LessThan Struct Reference

Binary function that satisfies the strict-weak-ordering requirement. More...

#include <TestBase.h>

Public Member Functions

bool operator() (std::shared_ptr< NodeObject > const &lhs, std::shared_ptr< NodeObject > const &rhs) const noexcept

Detailed Description

Binary function that satisfies the strict-weak-ordering requirement.

This compares the hashes of both objects and returns true if the first hash is considered to go before the second.

See also
std::sort

Definition at line 25 of file TestBase.h.

Member Function Documentation

◆ operator()()

bool xrpl::NodeStore::LessThan::operator() ( std::shared_ptr< NodeObject > const & lhs,
std::shared_ptr< NodeObject > const & rhs ) const
noexcept

Definition at line 28 of file TestBase.h.