]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/asio/execution/schedule.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / asio / execution / schedule.hpp
index 4eabc5c4eebf0aea3b9770819bcfbeaa79b35685..c86e7fab7eeee7e8a55c5feb2c3a0ad62470f009 100644 (file)
@@ -2,7 +2,7 @@
 // execution/schedule.hpp
 // ~~~~~~~~~~~~~~~~~~~~~~
 //
-// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// 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)
@@ -69,7 +69,7 @@ struct can_schedule :
 
 #else // defined(GENERATING_DOCUMENTATION)
 
-namespace asio_execution_schedule_fn {
+namespace boost_asio_execution_schedule_fn {
 
 using boost::asio::decay;
 using boost::asio::declval;
@@ -88,7 +88,7 @@ enum overload_type
   ill_formed
 };
 
-template <typename S, typename = void>
+template <typename S, typename = void, typename = void, typename = void>
 struct call_traits
 {
   BOOST_ASIO_STATIC_CONSTEXPR(overload_type, overload = ill_formed);
@@ -99,9 +99,7 @@ struct call_traits
 template <typename S>
 struct call_traits<S,
   typename enable_if<
-    (
-      schedule_member<S>::is_valid
-    )
+    schedule_member<S>::is_valid
   >::type> :
   schedule_member<S>
 {
@@ -111,11 +109,10 @@ struct call_traits<S,
 template <typename S>
 struct call_traits<S,
   typename enable_if<
-    (
-      !schedule_member<S>::is_valid
-      &&
-      schedule_free<S>::is_valid
-    )
+    !schedule_member<S>::is_valid
+  >::type,
+  typename enable_if<
+    schedule_free<S>::is_valid
   >::type> :
   schedule_free<S>
 {
@@ -125,13 +122,13 @@ struct call_traits<S,
 template <typename S>
 struct call_traits<S,
   typename enable_if<
-    (
-      !schedule_member<S>::is_valid
-      &&
-      !schedule_free<S>::is_valid
-      &&
-      is_executor<typename decay<S>::type>::value
-    )
+    !schedule_member<S>::is_valid
+  >::type,
+  typename enable_if<
+    !schedule_free<S>::is_valid
+  >::type,
+  typename enable_if<
+    is_executor<typename decay<S>::type>::value
   >::type>
 {
   BOOST_ASIO_STATIC_CONSTEXPR(overload_type, overload = identity);
@@ -242,22 +239,22 @@ struct static_instance
 template <typename T>
 const T static_instance<T>::instance = {};
 
-} // namespace asio_execution_schedule_fn
+} // namespace boost_asio_execution_schedule_fn
 namespace boost {
 namespace asio {
 namespace execution {
 namespace {
 
-static BOOST_ASIO_CONSTEXPR const asio_execution_schedule_fn::impl&
-  schedule = asio_execution_schedule_fn::static_instance<>::instance;
+static BOOST_ASIO_CONSTEXPR const boost_asio_execution_schedule_fn::impl&
+  schedule = boost_asio_execution_schedule_fn::static_instance<>::instance;
 
 } // namespace
 
 template <typename S>
 struct can_schedule :
   integral_constant<bool,
-    asio_execution_schedule_fn::call_traits<S>::overload !=
-      asio_execution_schedule_fn::ill_formed>
+    boost_asio_execution_schedule_fn::call_traits<S>::overload !=
+      boost_asio_execution_schedule_fn::ill_formed>
 {
 };
 
@@ -271,7 +268,7 @@ constexpr bool can_schedule_v = can_schedule<S>::value;
 template <typename S>
 struct is_nothrow_schedule :
   integral_constant<bool,
-    asio_execution_schedule_fn::call_traits<S>::is_noexcept>
+    boost_asio_execution_schedule_fn::call_traits<S>::is_noexcept>
 {
 };