summaryrefslogtreecommitdiff
path: root/test/other/bitOps.cpp.awk
diff options
context:
space:
mode:
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 }