Merge pull request #714 from CharlesGueunet/master

Add snippet for casting in CPP
This commit is contained in:
Louis Pilfold 2016-04-13 09:32:42 +01:00
commit e055cf9a71

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