proxygen
|
#include <Base-inl.h>
Public Member Functions | |
Count ()=default | |
template<class Source , class Value > | |
size_t | compose (const GenImpl< Value, Source > &source) const |
Public Member Functions inherited from folly::gen::Operator< Count > | |
ResultGen | compose (const GenImpl< Value, Source > &source) const |
Public Member Functions inherited from folly::gen::FBounded< Self > | |
const Self & | self () const |
Self & | self () |
Additional Inherited Members | |
Protected Member Functions inherited from folly::gen::Operator< Count > | |
Operator ()=default | |
Operator (Operator &&) noexcept=default | |
Operator (const Operator &)=default | |
Operator & | operator= (Operator &&) noexcept=default |
Operator & | operator= (const Operator &)=default |
Count - for simply counting the items in a collection.
This type is usually used through its singleton, 'count':
auto shortPrimes = seq(1, 100) | filter(isPrime) | count;
Definition at line 2131 of file Base-inl.h.
|
default |
|
inline |
Definition at line 2136 of file Base-inl.h.
References folly::gen::foldl(), and testing::Value().