BloombergLP::bslstl::Function_InvokerUtil::throwBadFunctionCall

Throw a bsl::bad_function_call exception in an exception-enabled build; otherwise, invoke the currently installed assertion violation handler. Note that providing a function to throw an exception moves the code generated to throw the exception into just one place rather than inline in every function template instantiation that would call it. It also insulates the header files from the declaration of the exception class itself, so that only clients catching bad_function_call need to include its header.

Synopsis

Declared in <bslstl_function_invokerutil.h>

[[noreturn]]
static
void
throwBadFunctionCall();

Return Value

NOTE

This function does not return.