Skip to content

Commit

Permalink
Update is_sorted_until.md
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-arelli authored Jul 1, 2020
1 parent 5354605 commit a4b4159
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions algorithm/is_sorted_until.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<h1>is_sorted_until</h1>
<p><strong>Description:</strong>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.</p>

<h6>Example:</h6>

**Example** :

,,,cpp
```cpp
#include <iostream>
#include <algorithm>

Expand All @@ -21,7 +22,7 @@
<< "the list and the first unsorted element is " << *ip;
return 0;
}
,,,
```
<br>
<h3><a href="https://rextester.com/NLRDYA45690">RUN CODE</a><h3>

0 comments on commit a4b4159

Please sign in to comment.