Function object that can be invoked for multiplication, 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 first value multiplied by second value.
|
| |
| constexpr auto | operator() (void const &lhs, void const &rhs) const noexcept(noexcept(std::declval< void & >() *std::declval< void & >())) -> void |
| | Returns the first value multiplied by second value.
|
| |
| constexpr auto | operator() (void const &lhs, void const &rhs) const noexcept(noexcept(std::declval< void & >() *std::declval< void & >())) -> void |
| | Returns the first value multiplied by second value.
|
| |
Function object that can be invoked for multiplication, specialized for type deduction.
◆ first_argument_type
Type of the first value to multiply.
◆ 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 multiply.
◆ operator()() [1/3]
template<class T, class U>
Returns the first value multiplied by second value.
- Template Parameters
-
| T | The first type |
| U | The second type |
- Parameters
-
| lhs | The first value to multiply |
| rhs | The second value to multiply |
- Returns
- Returns the result of invoking
operator* on lhs and rhs
◆ operator()() [2/3]
| auto std::multiplies< void >::operator() |
( |
void const & | lhs, |
|
|
void const & | rhs ) const-> void |
|
inlineconstexprnoexcept |
Returns the first value multiplied by second value.
- Template Parameters
-
| U | Template parameter to enable constraints. |
- Parameters
-
| lhs | The first value to multiply |
| rhs | The second value to multiply |
- Returns
- Returns the result of invoking
operator* on lhs and rhs
◆ operator()() [3/3]
| auto std::multiplies< void >::operator() |
( |
void const & | lhs, |
|
|
void const & | rhs ) const-> void |
|
inlineconstexprnoexcept |
Returns the first value multiplied by second value.
- Template Parameters
-
| U | Template parameter to enable constraints. |
- Parameters
-
| lhs | The first value to multiply |
| rhs | The second value to multiply |
- 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: