feat update
All checks were successful
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 1m52s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 1m8s

This commit is contained in:
tqcq 2024-03-24 23:20:40 +08:00
parent 33723944cc
commit 19309ca1d1

View File

@ -1405,6 +1405,34 @@ MakeAllPromise(Container &&container)
return promise_hpp::make_all_promise(std::begin(container), std::end(container));
}
template<typename Iter>
inline auto
MakeAnyPromise(Iter begin, Iter end)
{
return promise_hpp::make_any_promise(begin, end);
}
template<typename Container>
inline auto
MakeAnyPromise(Container &&container)
{
return promise_hpp::make_any_promise(std::begin(container), std::end(container));
}
template<typename Iter>
inline auto
MakeRacePromise(Iter begin, Iter end)
{
return promise_hpp::make_any_promise(begin, end);
}
template<typename Container>
inline auto
MakeRacePromise(Container &&container)
{
return promise_hpp::make_any_promise(std::begin(container), std::end(container));
}
}// namespace sled
#endif// SLED_FUTURES_PROMISE_H