From a63e7d65293c07e0567cfdafbce693a543bf2a0d Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 22 Sep 2026 17:01:36 +0200 Subject: lib: rename concept module files --- ttwhy/routers/concepts.cppm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ttwhy/routers/concepts.cppm (limited to 'ttwhy/routers/concepts.cppm') diff --git a/ttwhy/routers/concepts.cppm b/ttwhy/routers/concepts.cppm new file mode 100644 index 0000000..9660afc --- /dev/null +++ b/ttwhy/routers/concepts.cppm @@ -0,0 +1,20 @@ +module; + +#include + +#include + +export module ttwhy.routers:concepts; + +import ttwhy.scanners; + +namespace ttwhy +{ + + export template + concept router = requires(Candidate candidate, scanners::input_event event) { + typename Candidate::terminal_policy; + { candidate.process(event) } -> std::same_as>; + }; + +} // namespace ttwhy -- cgit v1.2.3