libhatchet
Loading...
Searching...
No Matches
hxkey_less_t< T, enabled_t > Class Template Reference

#include <hxkey.hpp>

Public Member Functions

template<typename A_, typename B_>
constexpr bool operator() (const A_ &a_, const B_ &b_) const

Detailed Description

template<typename T = void, typename enabled_t = void>
class hxkey_less_t< T, enabled_t >

hxkey_less_t<T> - A constexpr callable that returns true if the first object is less than the second.

Invokes operator< by default. All the other comparison operators can be written using operator<. However hxkey_equal_t is also used for efficiency. Specialize for a key type T to resolve custom ordering.

  • T : The type to compare.

Member Function Documentation

◆ operator()()

template<typename T = void, typename enabled_t = void>
template<typename A_, typename B_>
bool hxkey_less_t< T, enabled_t >::operator() ( const A_ & a_,
const B_ & b_ ) const
inlineconstexpr

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