nngn
|
Static container for a callable and its arguments. More...
#include <delegate.h>
Public Member Functions | |
delegate (const delegate &)=delete | |
delegate & | operator= (const delegate &)=delete |
delegate (delegate &&) noexcept=default | |
delegate & | operator= (delegate &&) noexcept=default |
delegate (void)=default | |
~delegate (void)=default | |
delegate (Args ...a) | |
delegate (F f) | |
delegate (F f, Args ...a) | |
operator() () | |
template<size_t n> | |
arg () const | |
template<size_t n> | |
arg () | |
Private Attributes | |
std::tuple< Args... > | args = {} |
Static Private Attributes | |
static constexpr bool | has_args = sizeof...(Args) |
Static container for a callable and its arguments.
Unlike std::function
, the type of the callable is fixed and not erased, so it can be fully optimized.
|
delete |
|
defaultnoexcept |
|
default |
|
default |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
defaultnoexcept |
|
private |
|
staticconstexprprivate |