[cpp] Added C++11-style foreach snippet.

This commit is contained in:
Aaron Broder 2012-08-27 14:01:57 -07:00
parent 9988d5bf78
commit 8108ecd980

View File

@ -64,3 +64,8 @@ snippet scin
std::cin >> ${1};
snippet cin
cin >> ${1};
# foreach
snippet fore
for (${1:auto} ${2:i} : ${3:container}) {
${4:/* code */}
}