Function object that can be invoked for division, specialized for type deduction.
More...
Function object that can be invoked for division, specialized for type deduction.
◆ first_argument_type
Type of the first value to divide.
◆ 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 divide.
◆ operator()() [1/3]
template<class T, class U>
| auto std::divides< void >::operator() |
( |
T && | lhs, |
|
|
U && | rhs ) const -> |
|
inlineconstexprnoexcept |
Returns 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::divides< void >::operator() |
( |
void const & | lhs, |
|
|
void const & | rhs ) const-> void |
|
inlineconstexprnoexcept |
Returns 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::divides< void >::operator() |
( |
void const & | lhs, |
|
|
void const & | rhs ) const-> void |
|
inlineconstexprnoexcept |
Returns 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: