summaryrefslogtreecommitdiff
path: root/test/other/bitOps.cpp.awk
diff options
context:
space:
mode:
authormzuenni <michi.zuendorf@gmail.com>2024-09-05 15:00:44 +0200
committermzuenni <michi.zuendorf@gmail.com>2024-09-05 15:00:44 +0200
commit9f7b8406e9be8ffd114490db5d1e89a88151c41a (patch)
tree5a4577efa9a9b803c498012117deffded683120a /test/other/bitOps.cpp.awk
parent65e5812f5b88989ea3ce4ac232f882004c60cc73 (diff)
more tests
Diffstat (limited to 'test/other/bitOps.cpp.awk')
-rw-r--r--test/other/bitOps.cpp.awk9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/other/bitOps.cpp.awk b/test/other/bitOps.cpp.awk
new file mode 100644
index 0000000..f1abcfb
--- /dev/null
+++ b/test/other/bitOps.cpp.awk
@@ -0,0 +1,9 @@
+/for \(int subset/ {
+ print "template<typename F>"
+ print "void subsets(int bitmask, F&& f) {"
+}
+/\/\/ Nächste Permutation/ {
+ print " {f(subset);}"
+ print "}"
+}
+{ print }