function |
An os_function is a generic
function pointer class which can be specified with up to ten template
parameters. The first template argument specifies the class which the function
is a member of. If the function is not a member of any class or is a static
member, then os_no_member should be used. The
second template argument specifies the return type. The remaining template
arguments are optional. An os_function can
encapsulate functions, static methods, regular methods, or constant methods. If
the function operator is invoked on an os_function
before its function pointer is set, then an exception will be thown.
Use of multiple template partial specialization gives the flexibility of having a variable length argument list. Therefore, the compiler must be able to support multiple template partial specialization and OS_NO_PARTIAL_SPECIALIZATION must NOT be defined to use this class.
Helper<ToolKit>
#include <ospace/helper/genfunc.h>
template< class T, class R, ... >
class os_function
0 .Throws: os_helper_toolkit_error
0
.true if the
function/method referenced by this function pointer is valid.Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.