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