Function object that can be invoked for negate, specialized for type deduction.
More...
Function object that can be invoked for negate, specialized for type deduction.
◆ argument_type
Type of the value to negate.
◆ is_transparent
Denotes that this is a transparent function object type.
◆ result_type
Result type of invoking this object.
◆ operator()() [1/3]
template<class T>
| auto std::negate< void >::operator() |
( |
T && | value | ) |
const -> |
|
inlineconstexprnoexcept |
Returns the negation of the value.
- Template Parameters
-
- Parameters
-
- Returns
- Returns the result of invoking
operator- on value
◆ operator()() [2/3]
| auto std::negate< void >::operator() |
( |
void const & | value | ) |
const-> void |
|
inlineconstexprnoexcept |
Returns the negation of the value.
- Template Parameters
-
| U | Template parameter to enable constraints. |
- Parameters
-
- Returns
- Returns the result of invoking
operator- on value
◆ operator()() [3/3]
| auto std::negate< void >::operator() |
( |
void const & | value | ) |
const-> void |
|
inlineconstexprnoexcept |
Returns the negation of the value.
- Template Parameters
-
| U | Template parameter to enable constraints. |
- Parameters
-
- Returns
- Returns the result of invoking
operator- on value
- 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: