![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Function object for performing division. More...
Public Types | |
| using | first_argument_type = T |
| Type of the first value to divide. | |
| using | result_type = T |
| Result type of invoking this object. | |
| using | second_argument_type = T |
| Type of the second value to divide. | |
Public Member Functions | |
| template<class U = T, arene::base::constraints< std::enable_if_t<!is_integral_v< U > > > = nullptr> | |
| 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. | |
| template<class U = T, arene::base::constraints< std::enable_if_t< is_integral_v< U > > > = nullptr> | |
| 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. | |
Function object for performing division.
| T | The type of the values |
result_type, first_argument type, and second_argument type. These aliases have been deprecated in C++17 and removed in C++20. | using std::divides< T >::first_argument_type = T |
Type of the first value to divide.
| using std::divides< T >::result_type = T |
Result type of invoking this object.
| using std::divides< T >::second_argument_type = T |
Type of the second value to divide.
|
inlineconstexprnoexcept |
Returns the first value divided by second value.
| U | Template parameter to enable constraints. |
| lhs | The first value to divide |
| rhs | The second value to divide |
operator/ on lhs and rhs
|
inlineconstexprnoexcept |
Returns the first value divided by second value.
| U | Template parameter to enable constraints. |
| lhs | The first value to divide |
| rhs | The second value to divide |
operator/ on lhs and rhs T. This avoids any warning for implicit conversion (present on gcc8).