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.

9 lines
172 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: adjacent_find
  3. # key: ajf
  4. # --
  5. auto pos = std::adjacent_find(std::begin(${1:container}), std::end($1));
  6. if (pos != std::end($1)) {
  7. $2
  8. }
  9. $0