fixed auto iterator in cpp

This commit is contained in:
William Ma 2013-08-28 04:41:41 +10:00
parent b410c9e3c4
commit 4c7fba87d5

View File

@ -116,9 +116,9 @@ snippet iter
# auto iterator
snippet itera
for (auto ${1:i} = $1.begin(); $1 != $1.end(); ++$1) {
${2:std::cout << *$1 << std::endl;}
}${3}
for (auto ${1:i} = ${2:container}.begin(); $1 != $2.end(); ++$1) {
${3:std::cout << *$1 << std::endl;}
}${4}
##
## Lambdas
# lamda (one line)