Quick Links:

bal | bbl | bdl | bsl

Public Types | Static Public Member Functions

bslstl::Function_InvokerUtil Struct Reference

#include <bslstl_function_invokerutil.h>

List of all members.

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 GenericInvokerinvokerForFunc (const bsl::nullptr_t &)
template<class PROTOTYPE , class FUNC >
static GenericInvokerinvokerForFunc (const FUNC &f)

Detailed Description

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


Member Typedef Documentation


Member Enumeration Documentation

anonymous enum
Enumerator:
e_Null 
e_FunctionPtr 
e_MemFunctionPtr 
e_MemDataPtr 
e_InplaceFunctor 
e_OutofplaceFunctor 

Member Function Documentation

template<class PROTOTYPE >
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.

template<class PROTOTYPE , class FUNC >
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.


The documentation for this struct was generated from the following file: