Function object that can be invoked for modulus, specialized for type deduction.
More...
|
| template<class T, class U> |
| constexpr auto | operator() (T &&lhs, U &&rhs) const noexcept(noexcept(std::forward< T >(std::declval< T & >()) % std::forward< U >(std::declval< U & >()))) -> |
| | Returns the remainder of the first value divided by second value.
|
| |
| constexpr auto | operator() (void const &lhs, void const &rhs) const noexcept(noexcept(std::declval< void & >() % std::declval< void & >())) -> void |
| | Returns the remainder of the first value divided by second value.
|
| |
| constexpr auto | operator() (void const &lhs, void const &rhs) const noexcept(noexcept(std::declval< void & >() % std::declval< void & >())) -> void |
| | Returns the remainder of the first value divided by second value.
|
| |
Function object that can be invoked for modulus, specialized for type deduction.
◆ first_argument_type
Type of the first value to modulus.
◆ is_transparent
Denotes that this is a transparent function object type.
◆ result_type
Result type of invoking this object.
◆ second_argument_type
Type of the second value to modulus.
◆ operator()() [1/3]
template<class T, class U>
| auto std::modulus< void >::operator() |
( |
T && | lhs, |
|
|
U && | rhs ) const -> |
|
inlineconstexprnoexcept |
Returns the remainder of the first value divided by second value.
- Template Parameters
-
| T | The first type |
| U | The second type |
- Parameters
-
| lhs | The first value to divide |
| rhs | The second value to divide |
- Returns
- Returns the result of invoking
operator% on lhs and rhs
◆ operator()() [2/3]
| auto std::modulus< void >::operator() |
( |
void const & | lhs, |
|
|
void const & | rhs ) const-> void |
|
inlineconstexprnoexcept |
Returns the remainder of the first value divided by second value.
- Template Parameters
-
| U | Template parameter to enable constraints. |
- Parameters
-
| lhs | The first value to divide |
| rhs | The second value to divide |
- Returns
- Returns the result of invoking
operator% on lhs and rhs
◆ operator()() [3/3]
| auto std::modulus< void >::operator() |
( |
void const & | lhs, |
|
|
void const & | rhs ) const-> void |
|
inlineconstexprnoexcept |
Returns the remainder of the first value divided by second value.
- Template Parameters
-
| U | Template parameter to enable constraints. |
- Parameters
-
| lhs | The first value to divide |
| rhs | The second value to divide |
- Returns
- Returns the result of invoking
operator% on lhs and rhs
- Note
- This overload explicitly casts the result of the computation to the type
T. This avoids any warning for implicit conversion (present on gcc8).
The documentation for this class was generated from the following file: