Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
204 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: mismatch
  3. # key: msm
  4. # --
  5. auto values = std::mismatch(std::begin(${1:container}), std::end($1), std::begin($1));
  6. if (values.first == std::end($1)) {
  7. $2
  8. } else {
  9. $3
  10. }
  11. $0