proxygen
folly::detail::function::FunctionTraits< ReturnType(Args...)>::SharedProxy Class Reference

#include <Function.h>

Public Member Functions

 SharedProxy (Function< NonConstSignature > &&func)
 
ReturnType operator() (Args &&...args) const
 

Private Attributes

std::shared_ptr< Function< NonConstSignature > > sp_
 

Detailed Description

template<typename ReturnType, typename... Args>
class folly::detail::function::FunctionTraits< ReturnType(Args...)>::SharedProxy

Definition at line 331 of file Function.h.

Constructor & Destructor Documentation

template<typename ReturnType , typename... Args>
folly::detail::function::FunctionTraits< ReturnType(Args...)>::SharedProxy::SharedProxy ( Function< NonConstSignature > &&  func)
inlineexplicit

Definition at line 335 of file Function.h.

336  : sp_(std::make_shared<Function<NonConstSignature>>(std::move(func))) {}
A polymorphic function wrapper that is not copyable and does not require the wrapped function to be c...
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
std::shared_ptr< Function< NonConstSignature > > sp_
Definition: Function.h:332

Member Function Documentation

template<typename ReturnType , typename... Args>
ReturnType folly::detail::function::FunctionTraits< ReturnType(Args...)>::SharedProxy::operator() ( Args &&...  args) const
inline

Definition at line 337 of file Function.h.

References testing::Args().

337  {
338  return (*sp_)(static_cast<Args&&>(args)...);
339  }
internal::ArgsMatcher< InnerMatcher > Args(const InnerMatcher &matcher)
std::shared_ptr< Function< NonConstSignature > > sp_
Definition: Function.h:332

Member Data Documentation

template<typename ReturnType , typename... Args>
std::shared_ptr<Function<NonConstSignature> > folly::detail::function::FunctionTraits< ReturnType(Args...)>::SharedProxy::sp_
private

Definition at line 332 of file Function.h.


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