From 5ea5d2893a55d71ac9379351cdae0c107830ae98 Mon Sep 17 00:00:00 2001 From: Aaron Broder Date: Tue, 28 Aug 2012 10:56:17 -0700 Subject: [PATCH] [cpp] Minor bug fixes Fixed broken sequences on a few STL container snippets. Renamed the access modifier snippets to avoid conflicts. --- snippets/cpp.snippets | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index 637b249..b14f3d9 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -1,7 +1,7 @@ ## STL Collections # std::array snippet array - std::array<${1:T}, ${2:N}> ${2};${3} + std::array<${1:T}, ${2:N}> ${3};${4} # std::vector snippet vector std::vector<${1:T}> ${2};${3} @@ -16,7 +16,7 @@ snippet list std::list<${1:T}> ${2};${3} # std::set snippet set - std::set<${1:T}> ${2};{$3} + std::set<${1:T}> ${2};${3} # std::map snippet map std::map<${1:Key}, ${2:T}> ${3};${4} @@ -34,7 +34,7 @@ snippet umap std::unordered_map<${1:Key}, ${2:T}> ${3};${4} # std::unordered_multiset snippet umset - std::unordered_multiset<${1:T}> ${3};${4} + std::unordered_multiset<${1:T}> ${2};${3} # std::unordered_multimap snippet ummap std::unordered_multimap<${1:Key}, ${2:T}> ${3};${4} @@ -50,13 +50,13 @@ snippet pqueue ## ## Access Modifiers # private -snippet pr +snippet pri private # protected -snippet po +snippet pro protected # public -snippet pu +snippet pub public # friend snippet fr