From 0d750ae55440d0233ddf441a015c0179532f658c Mon Sep 17 00:00:00 2001
From: Marshall Clow
I am aware of the problems with std::min and
std::max, and all the debate that has been going on (please consult
-Alexandrescu's paper and the links therein). But I don't see the purpose of this
+Alexandrescu's paper and the links therein). But I don't see the purpose of this
library as fixing something that is part of the C++ standard. I humbly
think it's beyond the scope of this library. Rather, I am
following the way of the standard in simply providing one more function
@@ -485,7 +485,12 @@ to keep it like this.
Acknowledgements
-My students in CS903 (Polytechnic Univ., http://photon.poly.edu/~hbr/cs903/)
+
+
+Generic: Min and Max Redivivus, by Andrei Alexandrescu
+Dr. Dobbs, April 2001
+
+
My students in CS903 (Polytechnic Univ., http://photon.poly.edu/~hbr/cs903/) who had minmax_element as an assignment helped clarify the issues, and also come up with the optimum number of comparisons for first_min_last_max_element. The identification of the issue surrounding max_element is solely @@ -516,7 +521,7 @@ Comparable, nth_element .
© Copyright Hervé Brönnimann, Polytechnic University, 2002--2004. Use, modification, and distribution is subject to the Boost Software