proxygen
folly::pushmi::invoke_fn Struct Reference

#include <functional.h>

Public Member Functions

template<class F , class... As>
auto operator() (F &&f, As &&...as) const noexcept(noexcept(((F &&) f)((As &&) as...))) -> decltype(((F &&) f)((As &&) as...))
 
template<class F , class... As>
auto operator() (F &&f, As &&...as) const noexcept(noexcept(std::declval< mem_fn_t< F >>()((As &&) as...))) -> decltype(std::mem_fn(f)((As &&) as...))
 

Private Types

template<class F >
using mem_fn_t = decltype(std::mem_fn(std::declval< F >()))
 

Detailed Description

Definition at line 25 of file functional.h.

Member Typedef Documentation

template<class F >
using folly::pushmi::invoke_fn::mem_fn_t = decltype(std::mem_fn(std::declval<F>()))
private

Definition at line 28 of file functional.h.

Member Function Documentation

template<class F , class... As>
auto folly::pushmi::invoke_fn::operator() ( F &&  f,
As &&...  as 
) const -> decltype(((F &&) f)((As &&) as...))
inlinenoexcept

Definition at line 32 of file functional.h.

References f.

34  {
35  return ((F &&) f)((As &&) as...);
36  }
auto f
Collect as()
Definition: Base.h:811
template<class F , class... As>
auto folly::pushmi::invoke_fn::operator() ( F &&  f,
As &&...  as 
) const -> decltype(std::mem_fn(f)((As &&) as...))
inlinenoexcept

Definition at line 38 of file functional.h.

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

40  {
41  return std::mem_fn(f)((As &&) as...);
42  }
auto f
Collect as()
Definition: Base.h:811

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