From a4b415943db6d1c90ea404b7bbe98a26372a3770 Mon Sep 17 00:00:00 2001 From: Akash <64220033+akash-arelli@users.noreply.github.com> Date: Wed, 1 Jul 2020 20:57:42 +0530 Subject: [PATCH] Update is_sorted_until.md --- algorithm/is_sorted_until.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/algorithm/is_sorted_until.md b/algorithm/is_sorted_until.md index 3ad944c2..e9b6e30d 100644 --- a/algorithm/is_sorted_until.md +++ b/algorithm/is_sorted_until.md @@ -1,9 +1,10 @@

is_sorted_until

Description:std::is_sorted_until is used to find out the first unsorted element in the range [first, last). It returns an iterator to the first unsorted element in the range, so all the elements in between first and the iterator returned are sorted.

-
Example:
+ +**Example** : - ,,,cpp +```cpp #include #include @@ -21,7 +22,7 @@ << "the list and the first unsorted element is " << *ip; return 0; } - ,,, +```

RUN CODE