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

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