-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* merge the implementations of `split` and `ensure_started` * work around TSAN's lack of support for `std::atomic_thread_fence` * gcc-11 doesn't support `__has_feature` * add missing `#include`, suppress dumb warnings
- Loading branch information
1 parent
6becda8
commit d21a430
Showing
5 changed files
with
504 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2023 NVIDIA Corporation | ||
* | ||
* Licensed under the Apache License Version 2.0 with LLVM Exceptions | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* https://llvm.org/LICENSE.txt | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#pragma once | ||
|
||
#include "__config.hpp" | ||
#include "__type_traits.hpp" | ||
|
||
#include <type_traits> | ||
|
||
namespace stdexec { | ||
namespace __detail { | ||
template <class _Cpcvref> | ||
inline constexpr auto __forward_like = | ||
[]<class _Uy>(_Uy&& __uy) noexcept -> auto&& { | ||
return static_cast<typename _Cpcvref::template __f<std::remove_reference_t<_Uy>>>(__uy); | ||
}; | ||
} | ||
|
||
template <class _Ty> | ||
inline constexpr auto const &__forward_like = __detail::__forward_like<__copy_cvref_fn<_Ty&&>>; | ||
} |
Oops, something went wrong.