summaryrefslogtreecommitdiff
path: root/c++-mode/isu
blob: 28ccddf15ddd0b3dad6ca4f25ce952607212a90b (plain)
1
2
3
4
5
6
7
8
9
10
# -*- mode: snippet -*-
# name: is_sorted_until
# key: isu
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
# --
auto pos = std::is_sorted_until(std::begin(${1:container}), std::end($1));
if (pos != std::end($1)) {
  $2
}
$0