|
| Composed ()=default |
|
| Composed (First first, Second second) |
|
template<class Source , class Value , class FirstRet = decltype(std::declval<First>().compose(std::declval<Source>())), class SecondRet = decltype(std::declval<Second>().compose(std::declval<FirstRet>()))> |
SecondRet | compose (const GenImpl< Value, Source > &source) const |
|
template<class Source , class Value , class FirstRet = decltype(std::declval<First>().compose(std::declval<Source>())), class SecondRet = decltype(std::declval<Second>().compose(std::declval<FirstRet>()))> |
SecondRet | compose (GenImpl< Value, Source > &&source) const |
|
ResultGen | compose (const GenImpl< Value, Source > &source) const |
|
const Self & | self () const |
|
Self & | self () |
|
template<class First, class Second>
class folly::gen::detail::Composed< First, Second >
Composed - For building up a pipeline of operations to perform, absent any particular source generator. Useful for building up custom pipelines.
This type is usually used by just piping two operators together:
auto valuesOf = filter([](Optional<int>& o) { return o.hasValue(); }) | map([](Optional<int>& o) -> int& { return o.value(); });
auto valuesIncluded = from(optionals) | valuesOf | as<vector>();
Definition at line 309 of file Core-inl.h.