init
This commit is contained in:
11
snippets/c++-mode/fni
Normal file
11
snippets/c++-mode/fni
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*- 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
|
||||
Reference in New Issue
Block a user