summaryrefslogtreecommitdiff
path: root/c++-mode/ucp
diff options
context:
space:
mode:
authorAlberto Luaces <aluaces@udc.es>2016-12-01 14:02:56 +0100
committerAlberto Luaces <aluaces@udc.es>2016-12-01 14:02:56 +0100
commit83355faf3e530fb36fcb32750ebedda19e1927ef (patch)
treeff9f7eb3cfb4842c41173e67b3a6614332343b24 /c++-mode/ucp
parent632df2ede2712994b12ee499abfc948e6dc3f9ae (diff)
parent12b385f3badb51bd3689a1a0986cc9410ea416c5 (diff)
Merge latest upstream.
Diffstat (limited to 'c++-mode/ucp')
-rw-r--r--c++-mode/ucp7
1 files changed, 7 insertions, 0 deletions
diff --git a/c++-mode/ucp b/c++-mode/ucp
new file mode 100644
index 0000000..1dc71ff
--- /dev/null
+++ b/c++-mode/ucp
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: unique_copy
+# key: ucp
+# --
+std::unique_copy(std::begin(${1:container}), std::end($1),
+ std::ostream_iterator<string>(std::cout, "\n"));
+$0