#include <dispatch.hpp>
|
template<class JDV > |
constexpr | JDispatch (const JDV &jdv) noexcept |
|
template<class Hdl > |
auto | operator() (const rapidjson::Value &jval, Hdl &&hdl) const |
|
De-templatized reference to a JDispatchVals so it can be stored in an array
template<class JDV >
constexpr JDispatch::JDispatch |
( |
const JDV & |
jdv | ) |
|
|
inlineexplicitnoexcept |
Constructs a JDispatch from a JDispatcherVals
- Template Parameters
-
- Parameters
-
[in] | jdv | JDispatcherVals object to use as a source |
template<class Hdl >
auto JDispatch::operator() |
( |
const rapidjson::Value & |
jval, |
|
|
Hdl && |
hdl |
|
) |
| const |
|
inline |
Dispatching-closure factory
- Template Parameters
-
- Parameters
-
[in] | jval | the JSON input value |
[in] | hdl | the callable which will process jval if the JSON value type is allowed |
- Returns
- a closure of signature void(HandlerContext&)
The documentation for this class was generated from the following file: