This file contains set of simple useful functors or functor adapters. More...
#include "paal/utils/type_functions.hpp"
#include <boost/range/adaptor/transformed.hpp>
#include <boost/range/iterator_range.hpp>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <tuple>
#include <utility>
Go to the source code of this file.
Namespaces | |
paal | |
global namespace of project. | |
paal::utils | |
Utils namespace. | |
Functions | |
template<typename T > | |
auto | paal::utils::make_dynamic_return_constant_functor (T t) |
make function for dynamic_return_constant_functor More... | |
template<typename F , typename G > | |
auto | paal::utils::compose (F f, G g) |
functor composition: x -> f(g(x)) More... | |
template<typename F , typename... Fs> | |
auto | paal::utils::compose (F f, Fs...fs) |
functor composition, variadic case More... | |
template<typename T > | |
void | paal::utils::detail::get (T t) |
necessary for ADL to work for get | |
template<class F > | |
auto | paal::utils::make_tuple_uncurry (F f) |
make for tuple_uncurry More... | |
template<typename CounterType = int, typename Functor > | |
auto | paal::utils::make_counting_functor_adaptor (Functor f, CounterType &cnt) |
make function for counting_functor_adaptor More... | |
template<typename Array > | |
auto | paal::utils::make_array_to_functor (const Array &a, int offset=0) |
make function for array_to_functor More... | |
template<typename Functor > | |
auto | paal::utils::make_assignable_functor (Functor &f) |
make function for assignable_functor More... | |
template<typename Functor > | |
auto | paal::utils::make_lift_iterator_functor (Functor f) |
make function for lift_iterator_functor More... | |
template<typename Functor , typename Compare = less> | |
auto | paal::utils::make_functor_to_comparator (Functor functor, Compare compare=Compare()) |
make for functor to comparator More... | |
template<typename ScaleType , typename ReturnType = ScaleType, typename Functor > | |
auto | paal::utils::make_scale_functor (Functor f, ScaleType s) |
make for scale_functor More... | |
template<typename FunctorLeft , typename FunctorRight , typename Operator > | |
auto | paal::utils::make_lift_binary_operator_functor (FunctorLeft left, FunctorRight right, Operator op) |
make function for lift_binary_operator_functor More... | |
template<typename Functor > | |
auto | paal::utils::make_not_functor (Functor functor) |
make for Not | |
template<typename FunctorLeft , typename FunctorRight > | |
auto | paal::utils::make_or_functor (FunctorLeft left, FunctorRight right) |
make for or_functor | |
template<typename FunctorLeft , typename FunctorRight > | |
auto | paal::utils::make_and_functor (FunctorLeft left, FunctorRight right) |
make and_functor | |
template<typename FunctorLeft , typename FunctorRight > | |
auto | paal::utils::make_xor_functor (FunctorLeft left, FunctorRight right) |
make for Xor | |
This file contains set of simple useful functors or functor adapters.
Definition in file functors.hpp.