mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-13 10:48:08 +00:00
Added thirdparty: boost library
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// Copyright (c) 2023 Klemens D. Morgenstern
|
||||
//
|
||||
// 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_COBALT_FOR_HPP
|
||||
#define BOOST_COBALT_COBALT_FOR_HPP
|
||||
|
||||
#include <boost/preprocessor/cat.hpp>
|
||||
|
||||
#define BOOST_COBALT_FOR_IMPL(Value, Expression, Id) \
|
||||
for (auto && Id = Expression; Id; ) \
|
||||
if (Value = co_await Id; false) {} else
|
||||
|
||||
#define BOOST_COBALT_FOR(Value, Expression) \
|
||||
BOOST_COBALT_FOR_IMPL(Value, Expression, BOOST_PP_CAT(__boost_cobalt_for_loop_value__, __LINE__))
|
||||
|
||||
#endif //BOOST_COBALT_COBALT_FOR_HPP
|
||||
Reference in New Issue
Block a user