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