summaryrefslogtreecommitdiff
path: root/c++-mode/alo
diff options
context:
space:
mode:
Diffstat (limited to 'c++-mode/alo')
-rw-r--r--c++-mode/alo10
1 files changed, 10 insertions, 0 deletions
diff --git a/c++-mode/alo b/c++-mode/alo
new file mode 100644
index 0000000..f16ad54
--- /dev/null
+++ b/c++-mode/alo
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: all_of
+# key: alo
+# --
+if (std::all_of(std::begin(${1:container}), std::end($1), []($2) {
+ $3
+})) {
+ $4
+}
+$0