From 1a2f73225945fe1fda00ab526c059d8ac84dc6c2 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 23 Dec 2016 15:01:03 +0000 Subject: [PATCH] Add std::enable_if snippet --- UltiSnips/cpp.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UltiSnips/cpp.snippets b/UltiSnips/cpp.snippets index 3e31a95..98cfdc4 100644 --- a/UltiSnips/cpp.snippets +++ b/UltiSnips/cpp.snippets @@ -76,3 +76,7 @@ class noisy_t { ~noisy_t() { puts(__PRETTY_FUNCTION__); } }; endsnippet + +snippet std::enable_if "Enable if" +typename std::enable_if<${1:condition}${2:, ${3:type}}>::type +endsnippet