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

10 lines
162 B
Plaintext

# -*- 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