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

12 lines
177 B
Plaintext
Raw Normal View History

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