proxygen
folly::pushmi::pipe_fn Struct Reference

#include <piping.h>

Public Member Functions

template<class T , class F >
auto operator() (T t, F f) const -> decltype(t|f)
 
template<class T , class F , class... FN, class This = pipe_fn>
auto operator() (T t, F f, FN...fn) const -> decltype(This()((t|f), fn...))
 

Detailed Description

Definition at line 29 of file piping.h.

Member Function Documentation

template<class T , class F >
auto folly::pushmi::pipe_fn::operator() ( T  t,
f 
) const -> decltype(t | f)
inline

Definition at line 37 of file piping.h.

References f, and folly::T.

37  {
38  return t | f;
39  }
auto f
requires Tuple && t
template<class T , class F , class... FN, class This = pipe_fn>
auto folly::pushmi::pipe_fn::operator() ( T  t,
f,
FN...  fn 
) const -> decltype(This()((t | f), fn...))
inline

Definition at line 41 of file piping.h.

References f, and folly::pushmi::pipe.

42  {
43  return This()((t | f), fn...);
44  }
auto f
requires Tuple && t

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