|
proxygen
|
#include <Core-inl.h>
Public Member Functions | |
| Chain (First first, Second second) | |
| template<class Handler > | |
| bool | apply (Handler &&handler) const |
| template<class Body > | |
| void | foreach (Body &&body) const |
Public Member Functions inherited from folly::gen::GenImpl< Value, Chain< Value, First, Second > > | |
| bool | apply (Handler &&handler) const |
| void | foreach (Body &&body) const |
Public Member Functions inherited from folly::gen::FBounded< Self > | |
| const Self & | self () const |
| Self & | self () |
Static Public Attributes | |
| static constexpr bool | infinite = First::infinite || Second::infinite |
Static Public Attributes inherited from folly::gen::GenImpl< Value, Chain< Value, First, Second > > | |
| static constexpr bool | infinite |
Private Attributes | |
| First | first_ |
| Second | second_ |
Additional Inherited Members | |
Public Types inherited from folly::gen::GenImpl< Value, Chain< Value, First, Second > > | |
| typedef Value | ValueType |
| typedef std::decay< Value >::type | StorageType |
Protected Member Functions inherited from folly::gen::GenImpl< Value, Chain< Value, First, Second > > | |
| GenImpl ()=default | |
| GenImpl (GenImpl &&)=default | |
| GenImpl (const GenImpl &)=default | |
| GenImpl & | operator= (GenImpl &&)=default |
| GenImpl & | operator= (const GenImpl &)=default |
Chain - For concatenating the values produced by two Generators.
This type is primarily used through using '+' to combine generators, like:
auto nums = seq(1, 10) + seq(20, 30); int total = nums | sum;
Definition at line 351 of file Core-inl.h.
|
inlineexplicit |
Definition at line 356 of file Core-inl.h.
|
inline |
|
inline |
Definition at line 366 of file Core-inl.h.
|
private |
Definition at line 352 of file Core-inl.h.
|
static |
Definition at line 371 of file Core-inl.h.
|
private |
Definition at line 353 of file Core-inl.h.