Files
emacs/lisp/yasnippet-snippets/snippets/c++-mode/rmi
2020-12-05 21:29:49 +01:00

12 lines
181 B
Plaintext

# -*- mode: snippet -*-
# name: remove_if
# key: rmi
# --
auto pos = std::remove_if(std::begin(${1:container}), std::end($1), []($2) {
$3
});
if (pos != std::end($1)) {
$4
}
$0