fixed auto iterator in cpp
This commit is contained in:
parent
b410c9e3c4
commit
4c7fba87d5
@ -116,9 +116,9 @@ snippet iter
|
|||||||
|
|
||||||
# auto iterator
|
# auto iterator
|
||||||
snippet itera
|
snippet itera
|
||||||
for (auto ${1:i} = $1.begin(); $1 != $1.end(); ++$1) {
|
for (auto ${1:i} = ${2:container}.begin(); $1 != $2.end(); ++$1) {
|
||||||
${2:std::cout << *$1 << std::endl;}
|
${3:std::cout << *$1 << std::endl;}
|
||||||
}${3}
|
}${4}
|
||||||
##
|
##
|
||||||
## Lambdas
|
## Lambdas
|
||||||
# lamda (one line)
|
# lamda (one line)
|
||||||
|
Loading…
Reference in New Issue
Block a user