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
168 B

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