5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_DIVIDES_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_DIVIDES_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>
56 constexpr auto operator()(T
const& lhs, T
const& rhs)
const
58 return static_cast<T
>(lhs / rhs);
76 template <
class T,
class U>
void is_transparent
Denotes that this is a transparent function object type.
Definition divides.hpp:67
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 divided by second value.
Definition divides.hpp:77
Function object for performing division.
Definition divides.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 divided by second value.
Definition divides.hpp:42
T first_argument_type
Type of the first value to divide.
Definition divides.hpp:32
T result_type
Result type of invoking this object.
Definition divides.hpp:30
T second_argument_type
Type of the second value to divide.
Definition divides.hpp:34
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