Namespaces
Variants
Views
Actions

Talk:cpp/algorithm/is sorted

From cppreference.com

1 1 3 4 5 is not an ascending order, it's a non-descending order. The wording in the standard is correct, your wording is not. The fact that is_sorted returns true for this example is proof of that.

ok, I changed ascending to non-descending for you --Cubbi (talk) 08:48, 16 March 2016 (PDT)