summaryrefslogtreecommitdiff
path: root/c++-mode/fin
diff options
context:
space:
mode:
Diffstat (limited to 'c++-mode/fin')
-rw-r--r--c++-mode/fin11
1 files changed, 11 insertions, 0 deletions
diff --git a/c++-mode/fin b/c++-mode/fin
new file mode 100644
index 0000000..41eaf6c
--- /dev/null
+++ b/c++-mode/fin
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: find_if_not
+# key: fin
+# --
+auto pos = std::find_if_not(std::begin(${1:container}), std::end($1),[]($2) {
+ $3
+});
+if (pos != std::end($1)) {
+ $4
+}
+$0