|
proxygen
|
#include <Function.h>
Public Member Functions | |
| FunctionRef ()=default | |
| template<typename Fun , typename std::enable_if< Conjunction< Negation< std::is_same< FunctionRef, _t< std::decay< Fun >>>>, is_invocable_r< ReturnType, Fun &&, Args &&... >>::value, int >::type = 0> | |
| constexpr | FunctionRef (Fun &&fun) noexcept |
| ReturnType | operator() (Args...args) const |
| constexpr | operator bool () const |
Private Types | |
| using | Call = ReturnType(*)(void *, Args &&...) |
Static Private Member Functions | |
| static ReturnType | uninitCall (void *, Args &&...) |
| template<typename Fun > | |
| static ReturnType | call (void *object, Args &&...args) |
Private Attributes | |
| void * | object_ {nullptr} |
| Call | call_ {&FunctionRef::uninitCall} |
Definition at line 896 of file Function.h.
|
private |
Definition at line 897 of file Function.h.
|
default |
Default constructor. Constructs an empty FunctionRef.
Invoking it will throw std::bad_function_call.
|
inlinenoexcept |
Construct a FunctionRef from a reference to a callable object.
Definition at line 932 of file Function.h.
|
inlinestaticprivate |
Definition at line 904 of file Function.h.
References folly::invoke().
|
inlineexplicit |
Definition at line 945 of file Function.h.
|
inline |
Definition at line 941 of file Function.h.
|
inlinestaticprivate |
Definition at line 899 of file Function.h.
|
private |
Definition at line 912 of file Function.h.
|
private |
Definition at line 911 of file Function.h.