function handlewithref

July 12, 2022 ยท View on GitHub

<< Back to reference manual

:warning: This feature is experimental!

template <typename H, typename... Args>
typename H::answer_type handle_ref(
    int64_t label, std::function<typename H::body_type(handler_ref)> body, Args&&... args);

template <typename H, typename... Args>
typename H::answer_type handle_ref(
    std::function<typename H::body_type(handler_ref)> body, Args&&... args);

Similar to handle_with, but reveals the handler reference to the installed handler as an argument to the body.