@@ -62,7 +62,7 @@ using std::is_sorted; // Section 25.4.1.5
62
62
ForwardIterator is_sorted_until ( ForwardIterator first, ForwardIterator last )
63
63
{
64
64
typedef typename std::iterator_traits<ForwardIterator>::value_type value_type;
65
- return is_sorted_until ( first, last, std::less_equal<value_type>());
65
+ return boost::algorithm:: is_sorted_until ( first, last, std::less_equal<value_type>());
66
66
}
67
67
68
68
@@ -76,7 +76,7 @@ using std::is_sorted; // Section 25.4.1.5
76
76
template <typename ForwardIterator, typename Pred>
77
77
bool is_sorted ( ForwardIterator first, ForwardIterator last, Pred p )
78
78
{
79
- return is_sorted_until (first, last, p) == last;
79
+ return boost::algorithm:: is_sorted_until (first, last, p) == last;
80
80
}
81
81
82
82
// / \fn is_sorted ( ForwardIterator first, ForwardIterator last )
@@ -88,7 +88,7 @@ using std::is_sorted; // Section 25.4.1.5
88
88
template <typename ForwardIterator>
89
89
bool is_sorted ( ForwardIterator first, ForwardIterator last )
90
90
{
91
- return is_sorted_until (first, last) == last;
91
+ return boost::algorithm:: is_sorted_until (first, last) == last;
92
92
}
93
93
#endif
94
94
@@ -109,7 +109,7 @@ using std::is_sorted; // Section 25.4.1.5
109
109
typename boost::range_iterator<const R>
110
110
>::type is_sorted_until ( const R &range, Pred p )
111
111
{
112
- return is_sorted_until ( boost::begin ( range ), boost::end ( range ), p );
112
+ return boost::algorithm:: is_sorted_until ( boost::begin ( range ), boost::end ( range ), p );
113
113
}
114
114
115
115
@@ -121,7 +121,7 @@ using std::is_sorted; // Section 25.4.1.5
121
121
template <typename R>
122
122
typename boost::range_iterator<const R>::type is_sorted_until ( const R &range )
123
123
{
124
- return is_sorted_until ( boost::begin ( range ), boost::end ( range ));
124
+ return boost::algorithm:: is_sorted_until ( boost::begin ( range ), boost::end ( range ));
125
125
}
126
126
127
127
@@ -135,7 +135,7 @@ using std::is_sorted; // Section 25.4.1.5
135
135
template <typename R, typename Pred>
136
136
bool is_sorted ( const R &range, Pred p )
137
137
{
138
- return is_sorted ( boost::begin ( range ), boost::end ( range ), p );
138
+ return boost::algorithm:: is_sorted ( boost::begin ( range ), boost::end ( range ), p );
139
139
}
140
140
141
141
@@ -147,7 +147,7 @@ using std::is_sorted; // Section 25.4.1.5
147
147
template <typename R, typename Pred>
148
148
bool is_sorted ( const R &range )
149
149
{
150
- return is_sorted ( boost::begin ( range ), boost::end ( range ));
150
+ return boost::algorithm:: is_sorted ( boost::begin ( range ), boost::end ( range ));
151
151
}
152
152
153
153
@@ -201,7 +201,7 @@ using std::is_sorted; // Section 25.4.1.5
201
201
bool is_decreasing ( ForwardIterator first, ForwardIterator last )
202
202
{
203
203
typedef typename std::iterator_traits<ForwardIterator>::value_type value_type;
204
- return is_sorted (first, last, std::greater_equal<value_type>());
204
+ return boost::algorithm:: is_sorted (first, last, std::greater_equal<value_type>());
205
205
}
206
206
207
207
// / \fn is_decreasing ( const R &range )
@@ -264,7 +264,7 @@ using std::is_sorted; // Section 25.4.1.5
264
264
bool is_strictly_decreasing ( ForwardIterator first, ForwardIterator last )
265
265
{
266
266
typedef typename std::iterator_traits<ForwardIterator>::value_type value_type;
267
- return is_sorted (first, last, std::greater<value_type>());
267
+ return boost::algorithm:: is_sorted (first, last, std::greater<value_type>());
268
268
}
269
269
270
270
// / \fn is_strictly_decreasing ( const R &range )
0 commit comments