4#ifndef TETL_FUNCTIONAL_MODULUS_HPP
5#define TETL_FUNCTIONAL_MODULUS_HPP
7#include <etl/_utility/forward.hpp>
14template <
typename T =
void>
18 return static_cast<T>(lhs % rhs);
24 using is_transparent =
void;
26 template <
typename T,
typename U>
27 [[nodiscard]]
constexpr auto
29 ->
decltype(
etl::forward<T>(lhs) %
etl::forward<U>(rhs))
31 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))
Definition modulus.hpp:28
Function object for computing remainders of divisions. Implements operator% for type T....
Definition modulus.hpp:15
constexpr auto operator()(T const &lhs, T const &rhs) const -> T
Definition modulus.hpp:16