summaryrefslogtreecommitdiff
path: root/c++-mode/iss
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/iss
parent11dec0b63d5d76f26a690adc6f6ab98e52b63b6a (diff)
parent04ef7136a5f764cd170a722cef730f7263f30c01 (diff)
Merge pull request #163 from ludwigpacifici/master
Added algorithm-mnemonics for C++
Diffstat (limited to 'c++-mode/iss')
-rw-r--r--c++-mode/iss8
1 files changed, 8 insertions, 0 deletions
diff --git a/c++-mode/iss b/c++-mode/iss
new file mode 100644
index 0000000..11c4cf0
--- /dev/null
+++ b/c++-mode/iss
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: is_sorted
+# key: iss
+# --
+if (std::is_sorted(std::begin(${1:container}), std::end($1))) {
+ $2
+}
+$0