![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Function object for performing subtraction. More...
Public Types | |
| using | first_argument_type = T |
| Type of the first value to subtract. | |
| using | result_type = T |
| Result type of invoking this object. | |
| using | second_argument_type = T |
| Type of the second value to subtract. | |
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 minus the 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 minus the second value. | |
Function object for performing subtraction.
| 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::minus< T >::first_argument_type = T |
Type of the first value to subtract.
| using std::minus< T >::result_type = T |
Result type of invoking this object.
| using std::minus< T >::second_argument_type = T |
Type of the second value to subtract.
|
inlineconstexprnoexcept |
Returns the first value minus the second value.
| U | Template parameter to enable constraints. |
| lhs | The first value to subtract |
| rhs | The second value to subtract |
operator- on lhs and rhs
|
inlineconstexprnoexcept |
Returns the first value minus the second value.
| U | Template parameter to enable constraints. |
| lhs | The first value to subtract |
| rhs | The second value to subtract |
operator- on lhs and rhs T. This avoids any warning for implicit conversion (present on gcc8).