summaryrefslogtreecommitdiff
path: root/c++-mode/isu
diff options
context:
space:
mode:
Diffstat (limited to 'c++-mode/isu')
-rw-r--r--c++-mode/isu9
1 files changed, 9 insertions, 0 deletions
diff --git a/c++-mode/isu b/c++-mode/isu
new file mode 100644
index 0000000..0c443ff
--- /dev/null
+++ b/c++-mode/isu
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: is_sorted_until
+# key: isu
+# --
+auto pos = std::is_sorted_until(std::begin(${1:container}), std::end($1));
+if (pos != std::end($1)) {
+ $2
+}
+$0