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