From 8fb6507c1c99537d765f7cb36a6fd2925ae8c2a6 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 4 Sep 2016 21:42:55 +0100 Subject: [PATCH] Add C++ cast snippets --- UltiSnips/cpp.snippets | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/UltiSnips/cpp.snippets b/UltiSnips/cpp.snippets index 465d4e0..e019a15 100644 --- a/UltiSnips/cpp.snippets +++ b/UltiSnips/cpp.snippets @@ -44,3 +44,19 @@ namespace ${1:}${1/\w+/ /}{ $0 }${1/\w+/ \/\/ $0/} 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