numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
num_collect::util::less< Left, Right > Class Template Reference

Class to compare two values with operator<. More...

#include <num_collect/util/comparators.h>

+ Collaboration diagram for num_collect::util::less< Left, Right >:

Public Member Functions

constexpr auto operator() (const Left &left, const Right &right) const -> bool
 Compare.
 

Detailed Description

template<typename Left, concepts::rhs_less_than_comparable< Left > Right = Left>
class num_collect::util::less< Left, Right >

Class to compare two values with operator<.

Template Parameters
LeftType of left-hand-side values.
RightType of right-hand-side values.

Definition at line 33 of file comparators.h.

Member Function Documentation

◆ operator()()

template<typename Left , concepts::rhs_less_than_comparable< Left > Right = Left>
auto num_collect::util::less< Left, Right >::operator() ( const Left & left,
const Right & right ) const -> bool
inlinenodiscardconstexpr

Compare.

Parameters
[in]leftLeft-hand-side value.
[in]rightRight-hand-side value.
Returns
Whether left is less than right.

Definition at line 42 of file comparators.h.


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