proxygen
|
#include <Base-inl.h>
Public Member Functions | |
Sum ()=default | |
template<class Source , class Value , class StorageType = typename std::decay<Value>::type> | |
StorageType | compose (const GenImpl< Value, Source > &source) const |
Public Member Functions inherited from folly::gen::Operator< Sum > | |
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< Sum > | |
Operator ()=default | |
Operator (Operator &&) noexcept=default | |
Operator (const Operator &)=default | |
Operator & | operator= (Operator &&) noexcept=default |
Operator & | operator= (const Operator &)=default |
Sum - For simply summing up all the values from a source.
This type is usually used through its singleton, 'sum':
auto gaussSum = seq(1, 100) | sum;
Definition at line 2151 of file Base-inl.h.
|
default |
|
inline |
Definition at line 2159 of file Base-inl.h.
References folly::gen::foldl(), folly::gen::move, and v.