4#ifndef TETL_FUNCTIONAL_PLUS_HPP
5#define TETL_FUNCTIONAL_PLUS_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 sum of lhs and rhs.
Definition plus.hpp:30
Function object for performing addition. Effectively calls operator+ on two instances of type T....
Definition plus.hpp:15
constexpr auto operator()(T const &lhs, T const &rhs) const -> T
Returns the sum of lhs and rhs.
Definition plus.hpp:17