BDE 4.14.0 Production release
|
#include <bslstl_equalto.h>
Public Types | |
typedef VALUE_TYPE | first_argument_type |
typedef VALUE_TYPE | second_argument_type |
typedef bool | result_type |
Public Member Functions | |
equal_to ()=default | |
Create a equal_to object. | |
equal_to (const equal_to &original)=default | |
~equal_to ()=default | |
Destroy this object. | |
equal_to & | operator= (const equal_to &)=default |
BSLA_NODISCARD BSLS_KEYWORD_CONSTEXPR bool | operator() (const VALUE_TYPE &lhs, const VALUE_TYPE &rhs) const |
This struct
defines a binary comparison functor applying operator==
to two VALUE_TYPE
objects. This class conforms to the C++11 standard specification of std::equal_to
that does not require inheriting from std::binary_function
. Note that this class is an empty POD type.
typedef VALUE_TYPE bsl::equal_to< VALUE_TYPE >::first_argument_type |
typedef bool bsl::equal_to< VALUE_TYPE >::result_type |
typedef VALUE_TYPE bsl::equal_to< VALUE_TYPE >::second_argument_type |
|
default |
|
default |
|
default |
|
inline |
Return true
if the specified lhs
compares equal to the specified rhs
using the equality-comparison operator, lhs == rhs
.
|
default |
Assign to this object the value of the specified rhs
object, and a return a reference providing modifiable access to this object. Note that as equal_to
is an empty (stateless) type, this operation will have no observable effect.