clang-tools
7.0.0
|
Stores a callable object (Func) and arguments (Args) and allows to call the callable with provided arguments later using operator ()
.
More...
#include <Function.h>
Public Types | |
using | Tuple = std::tuple< typename std::decay< Func >::type, typename std::decay< Args >::type... > |
Public Member Functions | |
ForwardBinder (Tuple FuncWithArguments) | |
template<class... RestArgs> | |
auto | operator() (RestArgs &&... Rest) -> decltype(this->CallImpl(llvm::index_sequence_for< Args... >(), std::forward< RestArgs >(Rest)...)) |
Public Attributes | |
Tuple | FuncWithArguments |
bool | WasCalled = false |
Stores a callable object (Func) and arguments (Args) and allows to call the callable with provided arguments later using operator ()
.
The arguments are std::forward'ed into the callable in the body of operator()
. Therefore operator()
can only be called once, as some of the arguments could be std::move'ed into the callable on first call.
Definition at line 35 of file Function.h.
using clang::clangd::ForwardBinder< Func, Args >::Tuple = std::tuple<typename std::decay<Func>::type, typename std::decay<Args>::type...> |
Definition at line 37 of file Function.h.
|
inline |
Definition at line 44 of file Function.h.
References clang::clangd::ForwardBinder< Func, Args >::FuncWithArguments.
|
inline |
Definition at line 61 of file Function.h.
Tuple clang::clangd::ForwardBinder< Func, Args >::FuncWithArguments |
Definition at line 38 of file Function.h.
Referenced by clang::clangd::ForwardBinder< Func, Args >::ForwardBinder().
bool clang::clangd::ForwardBinder< Func, Args >::WasCalled = false |
Definition at line 40 of file Function.h.