proxygen
folly::gen::detail::Composer< Operators > Class Template Reference

#include <Base-inl.h>

Public Member Functions

 Composer (Operators op)
 
template<class Source , class Ret = decltype(std::declval<Operators>().compose(std::declval<Source>()))>
Ret operator() (Source &&source) const
 

Private Attributes

Operators op_
 

Detailed Description

template<class Operators>
class folly::gen::detail::Composer< Operators >

Composer - Helper class for adapting pipelines into functors. Primarily used for 'mapOp'.

Definition at line 1415 of file Base-inl.h.

Constructor & Destructor Documentation

template<class Operators >
folly::gen::detail::Composer< Operators >::Composer ( Operators  op)
inlineexplicit

Definition at line 1419 of file Base-inl.h.

1419 : op_(std::move(op)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Function Documentation

template<class Operators >
template<class Source , class Ret = decltype(std::declval<Operators>().compose(std::declval<Source>()))>
Ret folly::gen::detail::Composer< Operators >::operator() ( Source &&  source) const
inline

Definition at line 1425 of file Base-inl.h.

1425  {
1426  return op_.compose(std::forward<Source>(source));
1427  }

Member Data Documentation

template<class Operators >
Operators folly::gen::detail::Composer< Operators >::op_
private

Definition at line 1416 of file Base-inl.h.


The documentation for this class was generated from the following file: