Function object that can be invoked for addition, specialized for type deduction.
More...
Function object that can be invoked for addition, specialized for type deduction.
◆ first_argument_type
Type of the first value to add.
◆ is_transparent
| using std::plus< void >::is_transparent = void |
Denotes that this is a transparent function object type.
◆ result_type
Result type of invoking this object.
◆ second_argument_type
| using std::plus< void >::second_argument_type |
Type of the second value to add.
◆ operator()() [1/3]
template<class T, class U>
| auto std::plus< void >::operator() |
( |
T && | lhs, |
|
|
U && | rhs ) const -> |
|
inlineconstexprnoexcept |
Returns the first value plus the second value.
- Template Parameters
-
| T | The first type |
| U | The second type |
- Parameters
-
| lhs | The first value to add |
| rhs | The second value to add |
- Returns
- Returns the result of invoking
operator+ on lhs and rhs
◆ operator()() [2/3]
| auto std::plus< void >::operator() |
( |
void const & | lhs, |
|
|
void const & | rhs ) const-> void |
|
inlineconstexprnoexcept |
Returns the first value plus the second value.
- Template Parameters
-
| U | Template parameter to enable constraints. |
- Parameters
-
| lhs | The first value to add |
| rhs | The second value to add |
- Returns
- Returns the result of invoking
operator+ on lhs and rhs
◆ operator()() [3/3]
| auto std::plus< void >::operator() |
( |
void const & | lhs, |
|
|
void const & | rhs ) const-> void |
|
inlineconstexprnoexcept |
Returns the first value plus the second value.
- Template Parameters
-
| U | Template parameter to enable constraints. |
- Parameters
-
| lhs | The first value to add |
| rhs | The second value to add |
- 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: