10 lines
158 B
Plaintext
10 lines
158 B
Plaintext
|
# -*- mode: snippet -*-
|
||
|
# name: find
|
||
|
# key: fnd
|
||
|
# --
|
||
|
auto pos = std::find(std::begin(${1:container}), std::end($1), $2);
|
||
|
if (pos != std::end($1)) {
|
||
|
$3
|
||
|
}
|
||
|
$0
|