diff options
Diffstat (limited to 'c++-mode/ano')
-rw-r--r-- | c++-mode/ano | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/c++-mode/ano b/c++-mode/ano new file mode 100644 index 0000000..36e017f --- /dev/null +++ b/c++-mode/ano @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: any_of +# key: ano +# -- +if (std::any_of(std::begin(${1:container}), std::end($1), []($2) { + $3 +})) { + $4 +} +$0 |