summaryrefslogtreecommitdiff
path: root/c++-mode/ano
diff options
context:
space:
mode:
authorAndrea Crotti <andrea.crotti.0@gmail.com>2016-10-15 12:16:16 +0100
committerGitHub <noreply@github.com>2016-10-15 12:16:16 +0100
commit29da8e6c0444188406fdc5bb8b18e9b328fb710e (patch)
treec4cc1663f2007caa04f0e8d298dde9f3959b0e76 /c++-mode/ano
parent11dec0b63d5d76f26a690adc6f6ab98e52b63b6a (diff)
parent04ef7136a5f764cd170a722cef730f7263f30c01 (diff)
Merge pull request #163 from ludwigpacifici/master
Added algorithm-mnemonics for C++
Diffstat (limited to 'c++-mode/ano')
-rw-r--r--c++-mode/ano10
1 files changed, 10 insertions, 0 deletions
diff --git a/c++-mode/ano b/c++-mode/ano
new file mode 100644
index 0000000..36e017f
--- /dev/null
+++ b/c++-mode/ano
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: any_of
+# key: ano
+# --
+if (std::any_of(std::begin(${1:container}), std::end($1), []($2) {
+ $3
+})) {
+ $4
+}
+$0