# -*- 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
|