BloombergLP::bslstl::Function_InvokerUtil

Namespace for looking up an invoker for a given callable type.

Synopsis

Declared in <bslstl_function_invokerutil.h>

struct Function_InvokerUtil;

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.

Types

NameDescription
IsFuncInvocable Boolean metafunction for invocability of FUNC under PROTOTYPE.

Type Aliases

NameDescription
GenericInvoker Generic function pointer. This type is as close as we can get to void * for function pointers.

Enums

NameDescription
Unnamed enum Enumeration of the different types of callable objects.

Static Member Functions

NameDescription
invokerForFunc invokerForFunc overloads
throwBadFunctionCall [noreturn]Throw bsl::bad_function_call, or abort if exceptions are disabled.