Add snippet for casting in CPP

This commit is contained in:
Gueunet Charles 2016-04-12 22:12:21 +02:00
parent ee4a8e936e
commit b7ea3ba690

View File

@ -106,6 +106,19 @@ snippet cout
snippet cin
std::cin >> ${1};
##
## Casts
# static
snippet sca
static_cast<${1:unsigned}>(${2:expr})${3}
# dynamic
snippet dca
dynamic_cast<${1:unsigned}>(${2:expr})${3}
# reinterpret
snippet rca
reinterpret_cast<${1:unsigned}>(${2:expr})${3}
# const
snippet cca
const_cast<${1:unsigned}>(${2:expr})${3}
## Iteration
# for i
snippet fori