HDK
|
#include <functionRef.h>
Public Member Functions | |
template<class Fn , class = std::enable_if_t<!_IsFunctionRef<Fn>::value>> | |
constexpr | TfFunctionRef (Fn &fn) noexcept |
Construct with an lvalue callable fn . More... | |
TfFunctionRef (TfFunctionRef const &rhs) noexcept=default | |
TfFunctionRef & | operator= (TfFunctionRef const &rhs) noexcept=default |
template<class Fn > | |
std::enable_if_t <!_IsFunctionRef< Fn >::value, TfFunctionRef & > | operator= (Fn &fn) noexcept |
Assign from an lvalue callable fn . More... | |
void | swap (TfFunctionRef &other) noexcept |
Ret | operator() (Args...args) const |
Invoke the callable that this object refers to with args . More... | |
Definition at line 99 of file functionRef.h.
|
inlinenoexcept |
Construct with an lvalue callable fn
.
Definition at line 112 of file functionRef.h.
|
defaultnoexcept |
Copy construct from another TfFunctionRef. The constructed TfFunctionRef refers to the same callable as rhs
.
|
inline |
Invoke the callable that this object refers to with args
.
Definition at line 142 of file functionRef.h.
|
defaultnoexcept |
Assign from another TfFunctionRef. After assignment this object refers to the same callable as rhs
.
|
inlinenoexcept |
Assign from an lvalue callable fn
.
Definition at line 129 of file functionRef.h.
|
inlinenoexcept |
Swap this and other
. After the swap, this refers to other's
previous callable, and other
refers to this's previous callable.
Definition at line 136 of file functionRef.h.