Add Activ libs & includes
This commit is contained in:
1 parent
f72e9053b0
commit
28ed30c944
10967 files changed
+2306716
No files matched your search
@@ -0,0 +1,132 @@
|
||||
//
|
||||
// impl/any_completion_executor.ipp
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
//
|
||||
// Copyright (c) 2003-2022 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 ACTIV_BOOST_ASIO_IMPL_ANY_COMPLETION_EXECUTOR_IPP
|
||||
#define ACTIV_BOOST_ASIO_IMPL_ANY_COMPLETION_EXECUTOR_IPP
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
|
||||
# pragma once
|
||||
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
|
||||
|
||||
#include <ActivBoost/asio/detail/config.hpp>
|
||||
|
||||
#if !defined(ACTIV_BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
|
||||
|
||||
#include <ActivBoost/asio/any_completion_executor.hpp>
|
||||
|
||||
#include <ActivBoost/asio/detail/push_options.hpp>
|
||||
|
||||
namespace Boost {
|
||||
namespace asio {
|
||||
|
||||
any_completion_executor::any_completion_executor() ACTIV_BOOST_ASIO_NOEXCEPT
|
||||
: base_type()
|
||||
{
|
||||
}
|
||||
|
||||
any_completion_executor::any_completion_executor(nullptr_t) ACTIV_BOOST_ASIO_NOEXCEPT
|
||||
: base_type(nullptr_t())
|
||||
{
|
||||
}
|
||||
|
||||
any_completion_executor::any_completion_executor(
|
||||
const any_completion_executor& e) ACTIV_BOOST_ASIO_NOEXCEPT
|
||||
: base_type(static_cast<const base_type&>(e))
|
||||
{
|
||||
}
|
||||
|
||||
any_completion_executor::any_completion_executor(std::nothrow_t,
|
||||
const any_completion_executor& e) ACTIV_BOOST_ASIO_NOEXCEPT
|
||||
: base_type(static_cast<const base_type&>(e))
|
||||
{
|
||||
}
|
||||
|
||||
#if defined(ACTIV_BOOST_ASIO_HAS_MOVE)
|
||||
any_completion_executor::any_completion_executor(
|
||||
any_completion_executor&& e) ACTIV_BOOST_ASIO_NOEXCEPT
|
||||
: base_type(static_cast<base_type&&>(e))
|
||||
{
|
||||
}
|
||||
|
||||
any_completion_executor::any_completion_executor(std::nothrow_t,
|
||||
any_completion_executor&& e) ACTIV_BOOST_ASIO_NOEXCEPT
|
||||
: base_type(static_cast<base_type&&>(e))
|
||||
{
|
||||
}
|
||||
#endif // defined(ACTIV_BOOST_ASIO_HAS_MOVE)
|
||||
|
||||
any_completion_executor& any_completion_executor::operator=(
|
||||
const any_completion_executor& e) ACTIV_BOOST_ASIO_NOEXCEPT
|
||||
{
|
||||
base_type::operator=(static_cast<const base_type&>(e));
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if defined(ACTIV_BOOST_ASIO_HAS_MOVE)
|
||||
any_completion_executor& any_completion_executor::operator=(
|
||||
any_completion_executor&& e) ACTIV_BOOST_ASIO_NOEXCEPT
|
||||
{
|
||||
base_type::operator=(static_cast<base_type&&>(e));
|
||||
return *this;
|
||||
}
|
||||
#endif // defined(ACTIV_BOOST_ASIO_HAS_MOVE)
|
||||
|
||||
any_completion_executor& any_completion_executor::operator=(nullptr_t)
|
||||
{
|
||||
base_type::operator=(nullptr_t());
|
||||
return *this;
|
||||
}
|
||||
|
||||
any_completion_executor::~any_completion_executor()
|
||||
{
|
||||
}
|
||||
|
||||
void any_completion_executor::swap(
|
||||
any_completion_executor& other) ACTIV_BOOST_ASIO_NOEXCEPT
|
||||
{
|
||||
static_cast<base_type&>(*this).swap(static_cast<base_type&>(other));
|
||||
}
|
||||
|
||||
template <>
|
||||
any_completion_executor any_completion_executor::prefer(
|
||||
const execution::outstanding_work_t::tracked_t& p, int) const
|
||||
{
|
||||
return static_cast<const base_type&>(*this).prefer(p);
|
||||
}
|
||||
|
||||
template <>
|
||||
any_completion_executor any_completion_executor::prefer(
|
||||
const execution::outstanding_work_t::untracked_t& p, int) const
|
||||
{
|
||||
return static_cast<const base_type&>(*this).prefer(p);
|
||||
}
|
||||
|
||||
template <>
|
||||
any_completion_executor any_completion_executor::prefer(
|
||||
const execution::relationship_t::fork_t& p, int) const
|
||||
{
|
||||
return static_cast<const base_type&>(*this).prefer(p);
|
||||
}
|
||||
|
||||
template <>
|
||||
any_completion_executor any_completion_executor::prefer(
|
||||
const execution::relationship_t::continuation_t& p, int) const
|
||||
{
|
||||
return static_cast<const base_type&>(*this).prefer(p);
|
||||
}
|
||||
|
||||
} // namespace asio
|
||||
} // namespace Boost
|
||||
|
||||
#include <ActivBoost/asio/detail/pop_options.hpp>
|
||||
|
||||
#endif // !defined(ACTIV_BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
|
||||
|
||||
#endif // ACTIV_BOOST_ASIO_IMPL_ANY_COMPLETION_EXECUTOR_IPP
|
||||
Reference in new issue
Block a user