Invoke the target with args..., or throw if this object is empty.

Synopsis

Declared in <bslstl_function.h>

RET
operator()(ARGS... args) const;

Description

If this object is empty, throw bsl::bad_function_call; otherwise invoke the target object with the specified args... and return the result (after conversion to RET). Note that, even though it is declared const, this call operator can mutate the target object and is thus considered a manipulator rather than an accessor.

Return Value

result of invoking the target, converted to RET

Parameters

Name

Description

args

arguments forwarded to the target callable

Created with MrDocs