// // Copyright (c) 2022 Klemens Morgenstern (klemens.morgenstern@gmx.net) // // 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_COBALT_JOIN_HPP #define BOOST_COBALT_JOIN_HPP #include #include namespace boost::cobalt { template auto join(Promise && ... p) { return detail::join_variadic_impl( static_cast(p)...); } template requires awaitable().begin())>> auto join(PromiseRange && p) { return detail::join_ranged_impl{static_cast(p)}; } } #endif //BOOST_COBALT_JOIN_HPP