5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_NEGATE_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_NEGATE_HPP_
26template <
class T =
void>
38 template <
class U = T, arene::base::constra
ints<std::enable_if_t<!is_
integral_v<U>>> =
nullptr>
50 template <
class U = T, arene::base::constra
ints<std::enable_if_t<is_
integral_v<U>>> =
nullptr>
52 return static_cast<T
>(-
value);
void is_transparent
Denotes that this is a transparent function object type.
Definition negate.hpp:61
constexpr auto operator()(T &&value) const noexcept(noexcept(-std::forward< T >(std::declval< T >()))) ->
Returns the negation of the value.
Definition negate.hpp:69
Function object for performing negation.
Definition negate.hpp:27
T argument_type
Type of the value to negate.
Definition negate.hpp:32
T result_type
Result type of invoking this object.
Definition negate.hpp:30
constexpr auto operator()(T const &value) const noexcept(noexcept(-std::declval< T >())) -> T
Returns the negation of the value.
Definition negate.hpp:39
Public export header for the constraints subpackage.
constexpr Type integral_constant< Type, Value >::value
Out-of-line definition for the value constant.
Definition integral_constant.hpp:64
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...
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