HDK
|
#include <functionRef.h>
Public Member Functions | |
template<class Fn > | |
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 > | |
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 104 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 133 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 120 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 127 of file functionRef.h.