// // 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_GATHER_HPP #define BOOST_COBALT_GATHER_HPP #include #include namespace boost::cobalt { template auto gather(Promise && ... p) { return detail::gather_variadic_impl( static_cast(p)...); } template requires awaitable().begin())>> auto gather(PromiseRange && p) { return detail::gather_ranged_impl{static_cast(p)}; } } #endif //BOOST_COBALT_GATHER_HPP