diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-09-22 18:56:44 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-09-22 18:56:44 +0200 |
| commit | 22f6534081acfabdab4956d337604a21e7da5b64 (patch) | |
| tree | a857b256a120d154667f2ed68cbf5151afe0cfbf /ttwhy/routers/concepts.cppm | |
| parent | 676586f2034ff112b309dccc430893d73e919191 (diff) | |
| download | ttwhy-22f6534081acfabdab4956d337604a21e7da5b64.tar.xz ttwhy-22f6534081acfabdab4956d337604a21e7da5b64.zip | |
lib: generalize concepts
Diffstat (limited to 'ttwhy/routers/concepts.cppm')
| -rw-r--r-- | ttwhy/routers/concepts.cppm | 7 |
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>>; }; |
