File indexing completed on 2024-04-28 16:53:07
0001 /* 0002 * SPDX-FileCopyrightText: 2017 Ivan Čukić <ivan.cukic(at)kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef ASYNQT_BASE_COLLECT_H 0008 #define ASYNQT_BASE_COLLECT_H 0009 0010 #include <tuple> 0011 0012 #include "../private/operations/collect_p.h" 0013 0014 namespace AsynQt 0015 { 0016 template<typename... _Results> 0017 QFuture<std::tuple<_Results...>> collect(const QFuture<_Results> &...futures) 0018 { 0019 return detail::collect_impl(futures...); 0020 } 0021 0022 } // namespace AsynQt 0023 0024 #endif // ASYNQT_COLLECT_H