aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--template/cpp/snip-std-cout.cpp (renamed from template/cpp/snip-cout.cpp)0
-rw-r--r--template/cpp/snip-std-for_each.cpp3
2 files changed, 3 insertions, 0 deletions
diff --git a/template/cpp/snip-cout.cpp b/template/cpp/snip-std-cout.cpp
index cf75f01..cf75f01 100644
--- a/template/cpp/snip-cout.cpp
+++ b/template/cpp/snip-std-cout.cpp
diff --git a/template/cpp/snip-std-for_each.cpp b/template/cpp/snip-std-for_each.cpp
new file mode 100644
index 0000000..760b37f
--- /dev/null
+++ b/template/cpp/snip-std-for_each.cpp
@@ -0,0 +1,3 @@
+std::for_each({{_input_:variable}}.begin(), {{_input_:variable}}.end(), [&](decltype({{_input_:variable}})::value_type x) {
+ {{_cursor_}}
+});