diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index c177a15..40e9253 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -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 */} + }