Quick Links: |
#include <bslstl_function_invokerutil.h>
Public Types | |
enum | { e_Null, e_FunctionPtr, e_MemFunctionPtr, e_MemDataPtr, e_InplaceFunctor, e_OutofplaceFunctor } |
Enumeration of the different types of callable objects. More... | |
typedef Function_Rep::GenericInvoker | GenericInvoker |
Static Public Member Functions | |
template<class PROTOTYPE > | |
static GenericInvoker * | invokerForFunc (const bsl::nullptr_t &) |
template<class PROTOTYPE , class FUNC > | |
static GenericInvoker * | invokerForFunc (const FUNC &f) |
This struct is a namespace containing a single function template, invokerForFunc
, that returns a pointer to a function that is used to invoke a callable object of a particular type.
See Component bslstl_function_invokerutil
anonymous enum |
static GenericInvoker* bslstl::Function_InvokerUtil::invokerForFunc | ( | const bsl::nullptr_t & | ) | [static] |
Return a null pointer. Note that template argument PROTOTYPE
must be supplied excplicitly, as there is no way to deduce it from the function arguments.
static GenericInvoker* bslstl::Function_InvokerUtil::invokerForFunc | ( | const FUNC & | f | ) | [static] |
Return a pointer to the invoker for a callable object of (template paramter) type FUNC
. If the specified f
object is a null pointer or null pointer-to-member, return a null pointer. Note that template argument PROTOTYPE
must be supplied excplicitly, as there is no way to deduce it from the function arguments.