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

Function object that can be invoked for equality 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 two values are equal.
 

Detailed Description

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

Function object that can be invoked for equality 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::equal_to< T >::first_argument_type = T

Type of the first value to compare.

◆ result_type

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

Result type of invoking this object.

◆ second_argument_type

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

Type of the second value to compare.

Member Function Documentation

◆ operator()()

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

Returns if two values are equal.

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: