Functors for transformations. More...
Data Structures | |
struct | Map |
struct | Identity |
Metafunction required for default arguments. More... | |
struct | At |
Metafunction calling at on a bound container. More... | |
struct | IndexIn |
Metafunction determining the index of an item in a bound container. More... | |
struct | Get |
Metafunction calling std::get on an argument with a bound index. More... | |
struct | Currier |
Functions | |
template<typename Transformation > | |
auto | map (Transformation &&t) |
template<class Container > | |
auto | at (Container &&container) |
Make functor calling at on arguments. More... | |
template<class Container > | |
auto | indexIn (Container &&container) |
Make functor determining the index of an item in a bound container. More... | |
template<unsigned i> | |
constexpr auto | get () |
Make functor calling std::get with particular index on an argument. More... | |
template<typename UnaryF , typename UnaryG > | |
auto | curry (UnaryF &&outer, UnaryG &&inner) |
Variables | |
constexpr Get< 0 > | first |
Calls std::get<0> on any argument it is invoked with. | |
constexpr Get< 1 > | second |
Calls std::get<1> on any argument it is invoked with. | |
Functors for transformations.
auto Scine::Molassembler::Temple::Functor::at | ( | Container && | container | ) |
Make functor calling at on arguments.
container | container to bind |
constexpr auto Scine::Molassembler::Temple::Functor::get | ( | ) |
Make functor calling std::get with particular index on an argument.
i | Index of get to use |
auto Scine::Molassembler::Temple::Functor::indexIn | ( | Container && | container | ) |
Make functor determining the index of an item in a bound container.
container | container to bind |