5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_PLUS_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_PLUS_HPP_
26template <
class T =
void>
41 template <
class U = T, arene::base::constra
ints<std::enable_if_t<!is_
integral_v<U>>> =
nullptr>
42 constexpr auto operator()(T
const& lhs, T
const& rhs)
const
55 template <
class U = T, arene::base::constra
ints<std::enable_if_t<is_
integral_v<U>>> =
nullptr>
58 return static_cast<T
>(lhs + rhs);
78 template <
class T,
class U>
void is_transparent
Denotes that this is a transparent function object type.
Definition plus.hpp:68
constexpr auto operator()(T &&lhs, U &&rhs) const noexcept(noexcept(std::forward< T >(std::declval< T & >())+std::forward< U >(std::declval< U & >()))) ->
Returns the first value plus the second value.
Definition plus.hpp:79
Function object for performing addition.
Definition plus.hpp:27
constexpr auto operator()(T const &lhs, T const &rhs) const noexcept(noexcept(std::declval< T >()+std::declval< T & >())) -> T
Returns the first value plus the second value.
Definition plus.hpp:56
T result_type
Result type of invoking this object.
Definition plus.hpp:30
T first_argument_type
Type of the first value to add.
Definition plus.hpp:32
T second_argument_type
Type of the second value to add.
Definition plus.hpp:34
constexpr auto operator()(T const &lhs, T const &rhs) const noexcept(noexcept(std::declval< T & >()+std::declval< T & >())) -> T
Returns the first value plus the second value.
Definition plus.hpp:42
Public export header for the constraints subpackage.
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