| 1 | #ifndef _SIM_ALGORITHM |
| 2 | #define _SIM_ALGORITHM |
| 3 | |
| 4 | #pragma clang system_header |
| 5 | |
| 6 | namespace std { |
| 7 | |
| 8 | template<class ForwardIt> |
| 9 | bool is_sorted(ForwardIt first, ForwardIt last); |
| 10 | |
| 11 | template <class RandomIt> |
| 12 | void nth_element(RandomIt first, RandomIt nth, RandomIt last); |
| 13 | |
| 14 | template<class RandomIt> |
| 15 | void partial_sort(RandomIt first, RandomIt middle, RandomIt last); |
| 16 | |
| 17 | template<class RandomIt> |
| 18 | void sort (RandomIt first, RandomIt last); |
| 19 | |
| 20 | template<class RandomIt> |
| 21 | void stable_sort(RandomIt first, RandomIt last); |
| 22 | |
| 23 | template<class BidirIt, class UnaryPredicate> |
| 24 | BidirIt partition(BidirIt first, BidirIt last, UnaryPredicate p); |
| 25 | |
| 26 | template<class BidirIt, class UnaryPredicate> |
| 27 | BidirIt stable_partition(BidirIt first, BidirIt last, UnaryPredicate p); |
| 28 | |
| 29 | } // namespace std |
| 30 | |
| 31 | #endif // _SIM_ALGORITHM |
| 32 | |