Update C++ snippets

This commit is contained in:
Kenneth Benzie 2024-03-09 11:30:44 +00:00
parent 51ae7955f7
commit bbe6c378fd

View File

@ -1,2 +1,25 @@
snippet array # C++ SnipMate snippets
std::array<${1:T}, ${2:N}> ${3:array};${4}
extends c
snippet for Range based
for (${1:auto} ${2:value} : ${3:container}) {
$0
}
snippet for Index based
for (${1:int} i = ${2:0}; i < ${3:count}; i++) {
$0
}
snippet const_cast
const_cast<$1>($2)$0
snippet static_cast
static_cast<$1>($2)$0
snippet dynamic_cast
dynamic_cast<$1>($2)$0
snippet reinterpret_cast
reinterpret_cast<$1>($2)$0