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

10 lines
162 B
Plaintext
Raw Normal View History

2017-12-21 17:29:29 +01:00
# -*- mode: snippet -*-
# name: remove
# key: rmv
# --
auto pos = std::remove(std::begin(${1:container}), std::end($1), $2);
if (pos != std::end($1)) {
$3
}
$0