4#ifndef TETL_FUNCTIONAL_NEGATE_HPP
5#define TETL_FUNCTIONAL_NEGATE_HPP
7#include <etl/_utility/forward.hpp>
14template <
typename T =
void>
18 return static_cast<T>(-arg);
24 using is_transparent =
void;
28 ->
decltype(-
etl::forward<T>(arg))
30 return -
etl::forward<T>(arg);
Definition adjacent_find.hpp:9
constexpr auto operator()(T &&arg) const noexcept(noexcept(-etl::forward< T >(arg))) -> decltype(-etl::forward< T >(arg))
Definition negate.hpp:27
Function object for performing negation. Effectively calls operator- on an instance of type T....
Definition negate.hpp:15
constexpr auto operator()(T const &arg) const -> T
Definition negate.hpp:16