summaryrefslogtreecommitdiff
path: root/c++-mode/iss
diff options
context:
space:
mode:
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