aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2012-05-17 17:37:20 +0900
committermattn <mattn.jp@gmail.com>2012-05-17 17:37:20 +0900
commit8e48c6e3c75b4aa580aa971be9c4c2357c1e99c3 (patch)
tree83a26bf17cacca044839e827555d1695dee2ca6b /template
parentdb753a0e9760bc480ff653f5c1bcf44b8c25c752 (diff)
downloadvim-sonictemplate-8e48c6e3c75b4aa580aa971be9c4c2357c1e99c3.tar.gz
vim-sonictemplate-8e48c6e3c75b4aa580aa971be9c4c2357c1e99c3.tar.bz2
vim-sonictemplate-8e48c6e3c75b4aa580aa971be9c4c2357c1e99c3.zip
std::for_each
Diffstat (limited to 'template')
-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_}}
+});