Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::less< T > Class Template Reference

Function object that can be invoked for less than comparisons. More...

Public Types

using first_argument_type = T
 Type of the first value to compare.
 
using result_type = bool
 Result type of invoking this object.
 
using second_argument_type = T
 Type of the second value to compare.
 

Public Member Functions

constexpr auto operator() (T const &lhs, T const &rhs) const noexcept(noexcept(lhs< rhs)) -> bool
 Returns if the first value is less than the second.
 

Detailed Description

template<class T = void>
class std::less< T >

Function object that can be invoked for less than comparisons.

Template Parameters
TThe type of the values
Note
This class contains the member types result_type, first_argument type, and second_argument type. These aliases have been deprecated in C++17 and removed in C++20.

Member Typedef Documentation

◆ first_argument_type

template<class T = void>
using std::less< T >::first_argument_type = T

Type of the first value to compare.

◆ result_type

template<class T = void>
using std::less< T >::result_type = bool

Result type of invoking this object.

◆ second_argument_type

template<class T = void>
using std::less< T >::second_argument_type = T

Type of the second value to compare.

Member Function Documentation

◆ operator()()

template<class T = void>
auto std::less< T >::operator() ( T const & lhs,
T const & rhs ) const -> bool
inlineconstexprnoexcept

Returns if the first value is less than the second.

Parameters
lhsThe first value to compare
rhsThe second value to compare
Returns
Returns the boolean result of invoking operator< on lhs and rhs

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