4#ifndef TETL_FUNCTIONAL_MINUS_HPP
5#define TETL_FUNCTIONAL_MINUS_HPP
7#include <etl/_utility/forward.hpp>
14template <
typename T =
void>
19 return static_cast<T>(lhs - rhs);
25 using is_transparent =
void;
28 template <
typename T,
typename U>
29 [[nodiscard]]
constexpr auto
31 ->
decltype(
etl::forward<T>(lhs) -
etl::forward<U>(rhs))
33 return etl::forward<T>(lhs) -
etl::forward<U>(rhs);
Definition adjacent_find.hpp:9
constexpr auto operator()(T &&lhs, U &&rhs) const noexcept(noexcept(etl::forward< T >(lhs) - etl::forward< U >(rhs))) -> decltype(etl::forward< T >(lhs) - etl::forward< U >(rhs))
Returns the difference between lhs and rhs.
Definition minus.hpp:30
Function object for performing subtraction. Effectively calls operator- on two instances of type T....
Definition minus.hpp:15
constexpr auto operator()(T const &lhs, T const &rhs) const -> T
Returns the difference between lhs and rhs.
Definition minus.hpp:17