Add snippet for casting in CPP
This commit is contained in:
parent
ee4a8e936e
commit
b7ea3ba690
@ -106,6 +106,19 @@ snippet cout
|
|||||||
snippet cin
|
snippet cin
|
||||||
std::cin >> ${1};
|
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
|
## Iteration
|
||||||
# for i
|
# for i
|
||||||
snippet fori
|
snippet fori
|
||||||
|
Loading…
Reference in New Issue
Block a user