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