Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 808 Bytes

refman-wrap_with.md

File metadata and controls

24 lines (17 loc) · 808 Bytes

function wrap_with

<< Back to reference manual

template <typename H>
resumption<typename H::answer_type()> wrap_with(
    int64_t label, std::function<typename H::body_type()> body, std::shared_ptr<H> handler);

template <typename H, typename A>
resumption<typename H::answer_type()> wrap_with(
    int64_t label, std::function<typename H::body_type(A)> body, std::shared_ptr<H> handler);

template <typename H>
resumption<typename H::answer_type()> wrap_with(
    std::function<typename H::body_type()> body, std::shared_ptr<H> handler);

template <typename H, typename A>
resumption<typename H::answer_type()> wrap_with(
    std::function<typename H::body_type(A)> body, std::shared_ptr<H> handler);

Similar to wrap but with a particular handler object.