22 #ifndef EDSP_ALGORITHM_ROUND_HPP 23 #define EDSP_ALGORITHM_ROUND_HPP 25 #include <edsp/meta/iterator.hpp> 29 namespace edsp {
inline namespace algorithm {
39 template <
typename InputIt,
typename OutputIt>
40 constexpr
void round(InputIt first, InputIt last, OutputIt d_first) {
43 [](
const meta::value_type_t<InputIt> value) -> meta::value_type_t<OutputIt> {
return std::round(value); });
48 #endif // EDSP_ALGORITHM_ROUND_HPP constexpr void round(InputIt first, InputIt last, OutputIt d_first)
For each element in the range [first, last) computes the nearest integer value to the element's value...
Definition: round.hpp:40
Definition: amplifier.hpp:29