Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::negate< void > Class Reference

Function object that can be invoked for negate, specialized for type deduction. More...

Public Types

using argument_type
 Type of the value to negate.
 
using is_transparent = void
 Denotes that this is a transparent function object type.
 
using result_type
 Result type of invoking this object.
 

Public Member Functions

template<class T>
constexpr auto operator() (T &&value) const noexcept(noexcept(-std::forward< T >(std::declval< T >()))) ->
 Returns the negation of the value.
 
constexpr auto operator() (void const &value) const noexcept(noexcept(-std::declval< void >())) -> void
 Returns the negation of the value.
 
constexpr auto operator() (void const &value) const noexcept(noexcept(-std::declval< void >())) -> void
 Returns the negation of the value.
 

Detailed Description

Function object that can be invoked for negate, specialized for type deduction.

Member Typedef Documentation

◆ argument_type

using std::negate< void >::argument_type

Type of the value to negate.

◆ is_transparent

using std::negate< void >::is_transparent = void

Denotes that this is a transparent function object type.

◆ result_type

using std::negate< void >::result_type

Result type of invoking this object.

Member Function Documentation

◆ operator()() [1/3]

template<class T>
auto std::negate< void >::operator() ( T && value) const ->
inlineconstexprnoexcept

Returns the negation of the value.

Template Parameters
TThe value type
Parameters
valueThe value to negate
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
UTemplate parameter to enable constraints.
Parameters
valueThe value to negate
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
UTemplate parameter to enable constraints.
Parameters
valueThe value to negate
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: