Component evidence

core/saved_handler.hpp

beast · include/boost/beast/core/saved_handler.hpp · cpp · BSL-1.0
integrationIntegration / API

Type-erased container for async completion handlers in Boost.Beast.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/boostorg/beast | License: BSL-1.0
// Provided via justclaw.it.com; keep this notice with the code.
//
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//

#ifndef BOOST_BEAST_CORE_SAVED_HANDLER_HPP
#define BOOST_BEAST_CORE_SAVED_HANDLER_HPP

#include <boost/beast/core/detail/config.hpp>
#include <boost/asio/cancellation_type.hpp>

namespace boost {
namespace beast {

/** An invocable, nullary function object which holds a completion handler.

    This container can hold a type-erased instance of any completion
    handle

... (truncated -- full source via MCP)