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

12 lines
204 B
Plaintext
Raw Normal View History

2017-12-21 17:29:29 +01:00
# -*- mode: snippet -*-
# name: mismatch
# key: msm
# --
auto values = std::mismatch(std::begin(${1:container}), std::end($1), std::begin($1));
if (values.first == std::end($1)) {
$2
} else {
$3
}
$0