Add C++ cast snippets

This commit is contained in:
Kenneth Benzie 2016-09-04 21:42:55 +01:00
parent 02520a6a20
commit 8fb6507c1c

View File

@ -44,3 +44,19 @@ namespace ${1:}${1/\w+/ /}{
$0 $0
}${1/\w+/ \/\/ $0/} }${1/\w+/ \/\/ $0/}
endsnippet endsnippet
snippet const_cast "Const cast"
const_cast<$1>($2)$0
endsnippet
snippet dynamic_cast "Dynamic cast"
dynamic_cast<$1>($2)$0
endsnippet
snippet static_cast "Static cast"
static_cast<$1>($2)$0
endsnippet
snippet reinterpret_cast "Reinterpret case"
reinterpret_cast<$1>($2)$0
endsnippet