From ee92ed6682bce8127656293ab275c561f58d80e8 Mon Sep 17 00:00:00 2001 From: ujihisa Date: Thu, 9 Jan 2014 22:11:49 -0800 Subject: [PATCH] Improve c++ snippet (for_cpp11) --- neosnippets/cpp.snip | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/neosnippets/cpp.snip b/neosnippets/cpp.snip index 639c067..4f72818 100644 --- a/neosnippets/cpp.snip +++ b/neosnippets/cpp.snip @@ -41,13 +41,7 @@ abbr try catch # range based for ( C++11 feature ) snippet for_CPP11 abbr for (:) {} - for (${1:#:var} : ${2:#:container}) { - ${0:TARGET} - } - -# range based for ( C++11 feature ) -snippet for_CPP11_const_auto - for (const auto &${1:#:var} : ${2:#:container}) { + for (${1:auto&& }${2:var} : ${3:container}) { ${0:TARGET} }