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

12 lines
193 B
Plaintext
Raw Normal View History

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