Added C++ snippets

- static_cast ( this is C++11 feature )
- namespace
- new casts
This commit is contained in:
rhysd 2012-10-16 14:55:50 +09:00
parent 030e98deda
commit 2f30c8c83e

View File

@ -35,3 +35,31 @@ snippet enum_scoped
abbr enum struct {} abbr enum struct {}
enum struct { ${1} } enum struct { ${1} }
# static assert ( C++11 feature )
snippet static_assert
abbr static_assert(,"")
static_assert( ${1}, "${2}" );${0}
delete namespace
snippet namespace
abbr namespace {}
prev_word '^'
namespace ${1:name}
${0}
} // namespace $1
snippet static_cast
abbr static_cast<>()
static_cast<${1}>(${2})${0}
snippet reinterpret_cast
abbr reinterpret_cast<>()
reinterpret_cast<${1}>(${2})${0}
snippet const_cast
abbr const_cast<>()
const_cast<${1}>(${2})${0}
snippet dynamic_cast
abbr dynamic_cast<>()
dynamic_cast<${1}>(${2})${0}