summaryrefslogtreecommitdiff
path: root/c++-mode/shf
diff options
context:
space:
mode:
Diffstat (limited to 'c++-mode/shf')
-rw-r--r--c++-mode/shf7
1 files changed, 7 insertions, 0 deletions
diff --git a/c++-mode/shf b/c++-mode/shf
new file mode 100644
index 0000000..3ad42b7
--- /dev/null
+++ b/c++-mode/shf
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: random_shuffle
+# key: shf
+# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
+# --
+std::random_shuffle(std::begin(${1:container}), std::end($1));
+$0