Sha256: b55cf8c79ee0d892648bc0d8a8836f7f4340f0a1b549fa30a64f0998ee8ca463

Contents?: true

Size: 1.57 KB

Versions: 12

Compression:

Stored size: 1.57 KB

Contents

//
// handler_type.hpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff 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)
//

#ifndef BOOST_ASIO_HANDLER_TYPE_HPP
#define BOOST_ASIO_HANDLER_TYPE_HPP

#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)

#include <boost/asio/detail/config.hpp>
#include <boost/asio/detail/type_traits.hpp>

#include <boost/asio/detail/push_options.hpp>

namespace boost {
namespace asio {

/// (Deprecated: Use two-parameter version of async_result.) Default handler
/// type traits provided for all completion token types.
/**
 * The handler_type traits class is used for determining the concrete handler
 * type to be used for an asynchronous operation. It allows the handler type to
 * be determined at the point where the specific completion handler signature
 * is known.
 *
 * This template may be specialised for user-defined completion token types.
 */
template <typename CompletionToken, typename Signature, typename = void>
struct handler_type
{
  /// The handler type for the specific signature.
  typedef typename conditional<
    is_same<CompletionToken, typename decay<CompletionToken>::type>::value,
    decay<CompletionToken>,
    handler_type<typename decay<CompletionToken>::type, Signature>
  >::type::type type;
};

} // namespace asio
} // namespace boost

#include <boost/asio/detail/pop_options.hpp>

#endif // BOOST_ASIO_HANDLER_TYPE_HPP

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-6.0.2 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-6.0.1 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-6.0.0 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-5.3.7 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-5.3.6 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-5.3.5 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp
passenger-5.3.4 src/cxx_supportlib/vendor-modified/boost/asio/handler_type.hpp