bool swapped = false;
while (i != first) {
if (*i < *other) {
- iter_swap(other, i);
+ std::iter_swap(other, i);
flag = other;
swapped = true;
sign = -sign;
swapped = false;
while (i != last) {
if (*other < *i) {
- iter_swap(i, other);
+ std::iter_swap(i, other);
flag = other;
swapped = true;
sign = -sign;
bool swapped = false;
while (i != first) {
if (comp(*i, *other)) {
- iter_swap(other, i);
+ std::iter_swap(other, i);
flag = other;
swapped = true;
sign = -sign;
swapped = false;
while (i != last) {
if (comp(*other, *i)) {
- iter_swap(i, other);
+ std::iter_swap(i, other);
flag = other;
swapped = true;
sign = -sign;
bool swapped = false;
while (i != first) {
if (comp(*i, *other)) {
- iter_swap(other, i);
+ std::iter_swap(other, i);
flag = other;
swapped = true;
}
swapped = false;
while (i != last) {
if (comp(*other, *i)) {
- iter_swap(i, other);
+ std::iter_swap(i, other);
flag = other;
swapped = true;
}
}
/* Function objects for STL sort() etc. */
-struct ex_is_less : public binary_function<ex, ex, bool> {
+struct ex_is_less : public std::binary_function<ex, ex, bool> {
bool operator() (const ex &lh, const ex &rh) const { return lh.compare(rh) < 0; }
};
-struct ex_is_equal : public binary_function<ex, ex, bool> {
+struct ex_is_equal : public std::binary_function<ex, ex, bool> {
bool operator() (const ex &lh, const ex &rh) const { return lh.is_equal(rh); }
};