4#ifndef TETL_FUNCTIONAL_MULTIPLIES_HPP
5#define TETL_FUNCTIONAL_MULTIPLIES_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 product between lhs and rhs.
Definition multiplies.hpp:30
Function object for performing multiplication. Effectively calls operator* on two instances of type T...
Definition multiplies.hpp:15
constexpr auto operator()(T const &lhs, T const &rhs) const -> T
Returns the product between lhs and rhs.
Definition multiplies.hpp:17