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

11 lines
194 B
Plaintext

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