diff options
Diffstat (limited to 'c++-mode/ipr')
-rw-r--r-- | c++-mode/ipr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/c++-mode/ipr b/c++-mode/ipr new file mode 100644 index 0000000..a08030f --- /dev/null +++ b/c++-mode/ipr @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: is_permutation +# key: ipr +# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc> +# -- +if (std::is_permutation(std::begin(${1:container}), std::end($1), std::begin($2))) { + $3 +} +$0 |