[cpp] Minor bug fixes

Fixed broken sequences on a few STL container snippets. Renamed
the access modifier snippets to avoid conflicts.
This commit is contained in:
Aaron Broder 2012-08-28 10:56:17 -07:00
parent 06b2e3a188
commit 5ea5d2893a

View File

@ -1,7 +1,7 @@
## STL Collections ## STL Collections
# std::array # std::array
snippet array snippet array
std::array<${1:T}, ${2:N}> ${2};${3} std::array<${1:T}, ${2:N}> ${3};${4}
# std::vector # std::vector
snippet vector snippet vector
std::vector<${1:T}> ${2};${3} std::vector<${1:T}> ${2};${3}
@ -16,7 +16,7 @@ snippet list
std::list<${1:T}> ${2};${3} std::list<${1:T}> ${2};${3}
# std::set # std::set
snippet set snippet set
std::set<${1:T}> ${2};{$3} std::set<${1:T}> ${2};${3}
# std::map # std::map
snippet map snippet map
std::map<${1:Key}, ${2:T}> ${3};${4} 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_map<${1:Key}, ${2:T}> ${3};${4}
# std::unordered_multiset # std::unordered_multiset
snippet umset snippet umset
std::unordered_multiset<${1:T}> ${3};${4} std::unordered_multiset<${1:T}> ${2};${3}
# std::unordered_multimap # std::unordered_multimap
snippet ummap snippet ummap
std::unordered_multimap<${1:Key}, ${2:T}> ${3};${4} std::unordered_multimap<${1:Key}, ${2:T}> ${3};${4}
@ -50,13 +50,13 @@ snippet pqueue
## ##
## Access Modifiers ## Access Modifiers
# private # private
snippet pr snippet pri
private private
# protected # protected
snippet po snippet pro
protected protected
# public # public
snippet pu snippet pub
public public
# friend # friend
snippet fr snippet fr