Invoke visitor with argument and return the result.
Synopsis
Declared in <bdljsn_json.h>
template<
class RETURN_TYPE,
class VISITOR,
class ARGUMENT>
static
RETURN_TYPE
invokeVisitor(
VISITOR* visitor,
ARGUMENT const& argument);
Description
Invoke the specified visitor (callable object) with the specified argument and return the computed value of (template parameter) the RETURN_TYPE. Note that in typical use, argument has the current value and type of a Json object.
Return Value
the value returned by invoking visitor with argument
Parameters
Name |
Description |
visitor |
callable to invoke |
argument |
value passed to |
Created with MrDocs