5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_EQUAL_TO_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_EQUAL_TO_HPP_
23template <
class T =
void>
37 constexpr auto operator()(T
const& lhs, T
const& rhs)
const noexcept(
noexcept(lhs == rhs)) ->
bool {
59 ARENE_IGNORE_CLANG(
"-Wimplicit-int-float-conversion",
"The type being compared is up to the user");
67 template <
class T,
class U>
ARENE_IGNORE_ALL("-Wfloat-equal", "The type being compared is up to the user")
constexpr auto operator()(T &&lhs, U &&rhs) const noexcept(noexcept(std::forward< T >(lhs)==std::forward< U >(rhs))) ->
Returns if two values are equal with parameter and return type deduced.
Definition equal_to.hpp:68
ARENE_IGNORE_CLANG("-Wimplicit-int-float-conversion", "The type being compared is up to the user")
void is_transparent
Denotes that this is a transparent function object type.
Definition equal_to.hpp:53
ARENE_IGNORE_GCC("-Wconversion", "The type being compared is up to the user")
Function object that can be invoked for equality comparisons.
Definition equal_to.hpp:24
T second_argument_type
Type of the second value to compare.
Definition equal_to.hpp:31
constexpr auto operator()(T const &lhs, T const &rhs) const noexcept(noexcept(lhs==rhs)) -> bool
Returns if two values are equal.
Definition equal_to.hpp:37
bool result_type
Result type of invoking this object.
Definition equal_to.hpp:27
T first_argument_type
Type of the first value to compare.
Definition equal_to.hpp:29
Provides macros used to disable and enable compiler specific diagnostics using the _Pragma operator.
#define ARENE_IGNORE_END()
Ends a region of a suppressed diagnostic.
Definition diagnostics.hpp:136
#define ARENE_IGNORE_START()
Begins a region of a suppressed diagnostic.
Definition diagnostics.hpp:131
constexpr auto forward(remove_reference_t< T > &value) noexcept -> T &&
Cast a value to an rvalue if T is an rvalue or rvalue reference, otherwise forward an lvalue referenc...
Definition forward.hpp:24