dotfiles/.emacs.d/snippets/c++-mode/ucp

8 lines
173 B
Plaintext
Raw Normal View History

2017-12-21 17:29:29 +01:00
# -*- 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