From 8108ecd9808a69d397cfc8d5f3258734f1243ea5 Mon Sep 17 00:00:00 2001 From: Aaron Broder Date: Mon, 27 Aug 2012 14:01:57 -0700 Subject: [PATCH] [cpp] Added C++11-style foreach snippet. --- snippets/cpp.snippets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index c177a15..40e9253 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -64,3 +64,8 @@ snippet scin std::cin >> ${1}; snippet cin cin >> ${1}; +# foreach +snippet fore + for (${1:auto} ${2:i} : ${3:container}) { + ${4:/* code */} + }