|
| Cycle ()=default |
|
| Cycle (off_t limit) |
|
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 |
|
Cycle< false > | operator() (off_t limit) const |
|
ResultGen | compose (const GenImpl< Value, Source > &source) const |
|
const Self & | self () const |
|
Self & | self () |
|
template<bool forever>
class folly::gen::detail::Cycle< forever >
Cycle - For repeating a sequence forever.
This type is usually used through the 'cycle' static value, like:
auto tests = from(samples) | cycle | take(100);
or in the finite case:
auto thrice = g | cycle(3);
Definition at line 1920 of file Base-inl.h.