aboutsummaryrefslogtreecommitdiff
path: root/ttwhy/routers/concepts.cppm
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-09-22 18:56:44 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-09-22 18:56:44 +0200
commit22f6534081acfabdab4956d337604a21e7da5b64 (patch)
treea857b256a120d154667f2ed68cbf5151afe0cfbf /ttwhy/routers/concepts.cppm
parent676586f2034ff112b309dccc430893d73e919191 (diff)
downloadttwhy-22f6534081acfabdab4956d337604a21e7da5b64.tar.xz
ttwhy-22f6534081acfabdab4956d337604a21e7da5b64.zip
lib: generalize concepts
Diffstat (limited to 'ttwhy/routers/concepts.cppm')
-rw-r--r--ttwhy/routers/concepts.cppm7
1 files changed, 2 insertions, 5 deletions
diff --git a/ttwhy/routers/concepts.cppm b/ttwhy/routers/concepts.cppm
index 9660afc..cfbcb5a 100644
--- a/ttwhy/routers/concepts.cppm
+++ b/ttwhy/routers/concepts.cppm
@@ -6,14 +6,11 @@ module;
export module ttwhy.routers:concepts;
-import ttwhy.scanners;
-
namespace ttwhy
{
- export template<typename Candidate>
- concept router = requires(Candidate candidate, scanners::input_event event) {
- typename Candidate::terminal_policy;
+ export template<typename Candidate, typename Event>
+ concept router = requires(Candidate candidate, Event event) {
{ candidate.process(event) } -> std::same_as<asio::awaitable<void>>;
};