Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
std::less< weighted< T > > Struct Template Reference

Public Member Functions

bool operator() (const weighted< T > &lhs, const weighted< T > &rhs) const
 

Detailed Description

template<typename T>
struct std::less< weighted< T > >

support for using weighted<T> in ordered containers

Definition at line 119 of file account_query_db.cpp.

Member Function Documentation

◆ operator()()

template<typename T >
bool std::less< weighted< T > >::operator() ( const weighted< T > & lhs,
const weighted< T > & rhs ) const
inline

Definition at line 120 of file account_query_db.cpp.

120 {
121 return std::tie(lhs.value, lhs.weight) < std::tie(rhs.value, rhs.weight);
122 }

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