Return the address of the specified function fn.
Declared in <bsls_util.h>
template<class RESULT>
static
RESULT(*
addressOf(RESULT(& fn)()))();
Note that this implementation supports functions of only a limited number of parameters, determined by the current needs of the BDE software. A more general form that will support an arbitrary number of function parameters will be available with C++11.
address of fn
| Name | Description |
|---|---|
| fn | function whose address is returned |