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

11 lines
204 B
Plaintext
Raw Normal View History

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