-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added connect_result_t and work towards basic_operation
- Loading branch information
1 parent
8f0697d
commit 759b4f2
Showing
6 changed files
with
170 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// include/beman/execution26/detail/basic_operation.hpp -*-C++-*- | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
#ifndef INCLUDED_BEMAN_EXECUTION26_DETAIL_BASIC_OPERATION | ||
#define INCLUDED_BEMAN_EXECUTION26_DETAIL_BASIC_OPERATION | ||
|
||
#include <beman/execution26/detail/basic_state.hpp> | ||
#include <beman/execution26/detail/state_type.hpp> | ||
#include <beman/execution26/detail/valid_specialization.hpp> | ||
#include <utility> | ||
|
||
// ---------------------------------------------------------------------------- | ||
|
||
namespace beman::execution26::detail | ||
{ | ||
template <typename Sender, typename Receiver> | ||
requires ::beman::execution26::detail::valid_specialization< | ||
::beman::execution26::detail::state_type, Sender, Receiver | ||
> | ||
struct basic_operation | ||
: ::beman::execution26::detail::basic_state<Sender, Receiver> | ||
{ | ||
basic_operation(Sender&& sender, Receiver&& receiver) noexcept(true/*-dk:TODO*/) | ||
: ::beman::execution26::detail::basic_state<Sender, Receiver>( | ||
::std::forward<Sender>(sender), ::std::move(receiver) | ||
) | ||
{ | ||
} | ||
}; | ||
} | ||
|
||
// ---------------------------------------------------------------------------- | ||
|
||
#endif |
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,27 @@ | ||
// include/beman/execution26/detail/connect_all.hpp -*-C++-*- | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
#ifndef INCLUDED_BEMAN_EXECUTION26_DETAIL_CONNECT_ALL | ||
#define INCLUDED_BEMAN_EXECUTION26_DETAIL_CONNECT_ALL | ||
|
||
// ---------------------------------------------------------------------------- | ||
|
||
namespace beman::execution26::detail | ||
{ | ||
struct connect_all_t | ||
{ | ||
template <typename Sender, typename Receiver> | ||
struct state | ||
{ | ||
}; | ||
auto operator()(auto&&...) const noexcept(true/*-dk:TODO*/) | ||
{ | ||
return 0; | ||
} | ||
}; | ||
inline constexpr connect_all_t connect_all{}; | ||
} | ||
|
||
// ---------------------------------------------------------------------------- | ||
|
||
#endif |
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,22 @@ | ||
// include/beman/execution26/detail/connect_result_t.hpp -*-C++-*- | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
#ifndef INCLUDED_BEMAN_EXECUTION26_DETAIL_CONNECT_RESULT | ||
#define INCLUDED_BEMAN_EXECUTION26_DETAIL_CONNECT_RESULT | ||
|
||
#include <beman/execution26/detail/connect.hpp> | ||
#include <type_traits> | ||
|
||
// ---------------------------------------------------------------------------- | ||
|
||
namespace beman::execution26 | ||
{ | ||
template <typename Sender, typename Receiver> | ||
using connect_result_t | ||
= decltype(::beman::execution26::connect(::std::declval<Sender>(), | ||
::std::declval<Receiver>())); | ||
} | ||
|
||
// ---------------------------------------------------------------------------- | ||
|
||
#endif |
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