diff options
Diffstat (limited to 'c++-mode/ucp')
-rw-r--r-- | c++-mode/ucp | 7 |
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 |