Seastar
High performance C++ framework for concurrent servers
|
A clone of std::function
, but only invokes the move constructor of the contained function.
#include <seastar/util/noncopyable_function.hh>
Public Member Functions | |
template<typename Func > | |
noncopyable_function (Func func) | |
template<typename Object , typename... AllButFirstArg> | |
noncopyable_function (Ret(Object::*member)(AllButFirstArg...) noexcept(Noexcept)) | |
template<typename Object , typename... AllButFirstArg> | |
noncopyable_function (Ret(Object::*member)(AllButFirstArg...) const noexcept(Noexcept)) | |
noncopyable_function (const noncopyable_function &)=delete | |
noncopyable_function & | operator= (const noncopyable_function &)=delete |
noncopyable_function (noncopyable_function &&x) noexcept | |
noncopyable_function & | operator= (noncopyable_function &&x) noexcept |
Ret | operator() (Args... args) const noexcept(Noexcept) |
operator bool () const | |