RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Types | Static Public Member Functions
Datacratic::JS::callfromjs< boost::function< Return(Args...)>, arity > Struct Template Reference

#include <js_call.h>

List of all members.

Public Types

typedef boost::function
< Return(Args...)> 
Fn

Static Public Member Functions

static Return call (const Fn &fn, const JS::JSArgs &args)

Detailed Description

template<typename Return, typename... Args, int arity>
struct Datacratic::JS::callfromjs< boost::function< Return(Args...)>, arity >

call a boost::function from JS, variardic version with a non-void return type.

There is some funky template magic that has to happen here. In order to know which argument to unpack, we need to turn our list of Args... (which have no position encoded) into a list of InPosition<position, arg> which encodes the position within the type.

Definition at line 55 of file js_call.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator