algorithm.hpp File Reference

algorithm.hpp File Reference#

Composable Kernel: algorithm.hpp File Reference
algorithm.hpp File Reference
#include <algorithm>
#include <iterator>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  ck
namespace  ck::ranges

Functions

template<typename InputRange, typename OutputIterator>
auto ck::ranges::copy (InputRange &&range, OutputIterator iter) -> decltype(std::copy(std::begin(std::forward< InputRange >(range)), std::end(std::forward< InputRange >(range)), iter))
template<typename T, typename OutputRange>
auto ck::ranges::fill (OutputRange &&range, const T &init) -> std::void_t< decltype(std::fill(std::begin(std::forward< OutputRange >(range)), std::end(std::forward< OutputRange >(range)), init))>
template<typename InputRange, typename OutputIterator, typename UnaryOperation>
auto ck::ranges::transform (InputRange &&range, OutputIterator iter, UnaryOperation unary_op) -> decltype(std::transform(std::begin(range), std::end(range), iter, unary_op))