Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 610 Bytes

refman-handle_with_ref.md

File metadata and controls

17 lines (12 loc) · 610 Bytes

function handle_with_ref

<< Back to reference manual

⚠️ 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.