proxygen
|
#include <Base-inl.h>
Classes | |
class | Generator |
Public Member Functions | |
Until ()=default | |
Until (Predicate pred) | |
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 |
Public Member Functions inherited from folly::gen::Operator< Until< Predicate > > | |
ResultGen | compose (const GenImpl< Value, Source > &source) const |
Public Member Functions inherited from folly::gen::FBounded< Self > | |
const Self & | self () const |
Self & | self () |
Private Attributes | |
Predicate | pred_ |
Additional Inherited Members | |
Protected Member Functions inherited from folly::gen::Operator< Until< Predicate > > | |
Operator ()=default | |
Operator (Operator &&) noexcept=default | |
Operator (const Operator &)=default | |
Operator & | operator= (Operator &&) noexcept=default |
Operator & | operator= (const Operator &)=default |
Until - For producing values from a source until a predicate is satisfied.
This type is usually used through the 'until' helper function, like:
auto best = from(sortedItems) | until([](Item& item) { return item.score > 100; }) | as<std::vector>();
Definition at line 637 of file Base-inl.h.
|
default |
|
inlineexplicit |
Definition at line 642 of file Base-inl.h.
|
inline |
|
inline |
|
private |
Definition at line 638 of file Base-inl.h.