proxygen
|
#include <Base-inl.h>
Public Member Functions | |
RangeSource ()=default | |
RangeSource (Range< Iterator > range) | |
template<class Handler > | |
bool | apply (Handler &&handler) const |
template<class Body > | |
void | foreach (Body &&body) const |
Public Member Functions inherited from folly::gen::GenImpl< Range< Iterator >::reference, RangeSource< Iterator > > | |
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 = false |
Static Public Attributes inherited from folly::gen::GenImpl< Range< Iterator >::reference, RangeSource< Iterator > > | |
static constexpr bool | infinite |
Private Attributes | |
Range< Iterator > | range_ |
Additional Inherited Members | |
Public Types inherited from folly::gen::GenImpl< Range< Iterator >::reference, RangeSource< Iterator > > | |
typedef Range< Iterator >::reference | ValueType |
typedef std::decay< Range< Iterator >::reference >::type | StorageType |
Protected Member Functions inherited from folly::gen::GenImpl< Range< Iterator >::reference, RangeSource< Iterator > > | |
GenImpl ()=default | |
GenImpl (GenImpl &&)=default | |
GenImpl (const GenImpl &)=default | |
GenImpl & | operator= (GenImpl &&)=default |
GenImpl & | operator= (const GenImpl &)=default |
RangeSource - For producing values from a folly::Range. Useful for referring to a slice of some container.
This type is primarily used through the 'from' function, like:
auto rangeSource = from(folly::range(v.begin(), v.end())); auto sum = rangeSource | sum;
Reminder: Be careful not to invalidate iterators when using ranges like this.
Definition at line 237 of file Base-inl.h.
|
default |
|
inlineexplicit |
Definition at line 244 of file Base-inl.h.
|
inline |
Definition at line 247 of file Base-inl.h.
References handler(), and value.
|
inline |
Definition at line 257 of file Base-inl.h.
References value.
|
static |
Definition at line 264 of file Base-inl.h.
|
private |
Definition at line 240 of file Base-inl.h.