diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2024-09-05 15:00:44 +0200 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2024-09-05 15:00:44 +0200 |
| commit | 9f7b8406e9be8ffd114490db5d1e89a88151c41a (patch) | |
| tree | 5a4577efa9a9b803c498012117deffded683120a /test/other/bitOps.cpp.awk | |
| parent | 65e5812f5b88989ea3ce4ac232f882004c60cc73 (diff) | |
more tests
Diffstat (limited to 'test/other/bitOps.cpp.awk')
| -rw-r--r-- | test/other/bitOps.cpp.awk | 9 |
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 } |
