|
| PMap ()=default |
|
| PMap (Predicate pred, size_t nThreads) |
|
template<class Source , class Value , class Gen = Generator<Value, Source>> |
Gen | compose (GenImpl< Value, Source > &&source) const |
|
template<class Source , class Value , class Gen = Generator<Value, Source>> |
Gen | compose (const GenImpl< Value, Source > &source) const |
|
ResultGen | compose (const GenImpl< Value, Source > &source) const |
|
const Self & | self () const |
|
Self & | self () |
|
template<class Predicate>
class folly::gen::detail::PMap< Predicate >
PMap - Map in parallel (using threads). For producing a sequence of values by passing each value from a source collection through a predicate while running the predicate in parallel in different threads.
This type is usually used through the 'pmap' helper function:
auto squares = seq(1, 10) | pmap(fibonacci, 4) | sum;
Definition at line 47 of file ParallelMap-inl.h.