diff options
Diffstat (limited to 'c++-mode/fnd')
-rw-r--r-- | c++-mode/fnd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/c++-mode/fnd b/c++-mode/fnd new file mode 100644 index 0000000..6009138 --- /dev/null +++ b/c++-mode/fnd @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: find +# key: fnd +# -- +auto pos = std::find(std::begin(${1:container}), std::end($1), $2); +if (pos != std::end($1)) { + $3 +} +$0 |