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