proxygen
folly::detail::apply_tuple::Uncurry< F > Class Template Reference

#include <ApplyTuple.h>

Public Member Functions

 Uncurry (F &&func)
 
 Uncurry (const F &func)
 
template<class Tuple >
auto operator() (Tuple &&tuple) const -> decltype(apply(std::declval< F >(), std::forward< Tuple >(tuple)))
 

Private Attributes

func_
 

Detailed Description

template<class F>
class folly::detail::apply_tuple::Uncurry< F >

Definition at line 141 of file ApplyTuple.h.

Constructor & Destructor Documentation

template<class F >
folly::detail::apply_tuple::Uncurry< F >::Uncurry ( F &&  func)
inlineexplicit

Definition at line 143 of file ApplyTuple.h.

143 : func_(std::move(func)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
template<class F >
folly::detail::apply_tuple::Uncurry< F >::Uncurry ( const F &  func)
inlineexplicit

Definition at line 144 of file ApplyTuple.h.

Member Function Documentation

template<class F >
template<class Tuple >
auto folly::detail::apply_tuple::Uncurry< F >::operator() ( Tuple &&  tuple) const -> decltype(apply(std::declval<F>(), std::forward<Tuple>(tuple)))
inline

Definition at line 147 of file ApplyTuple.h.

References folly::apply().

148  {
149  return apply(func_, std::forward<Tuple>(tuple));
150  }
decltype(auto) constexpr apply(F &&func, Tuple &&tuple)
Definition: ApplyTuple.h:87

Member Data Documentation

template<class F >
F folly::detail::apply_tuple::Uncurry< F >::func_
private

Definition at line 153 of file ApplyTuple.h.


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