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.

8 lines
163 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: accumulate
  3. # key: acl
  4. # --
  5. auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0, [](int total, $2) {
  6. $3
  7. });
  8. $0