Barry <dh*****@gmail.comwrote in news:g1**********@news.cn99.com:
Is there any magic using std::less<here?
why not just "return _Left[index] < _Right[index];" ?
No, good catch. That would save a template expansion, since at base it's
going to look for operator< to be defined anyway.
name starting with underscore followed by a capital letter is
reserved for implementation usage.
Side effect of copying the compiler's std::less body to base from. I'll fix
that.
why inherit from std::less? which introduces a hiding of operator() in
std::less
maybe std::binary_function<V, V, boolis better.
Just to get the typedefs, but there's no strong reason to use
binary_function versus less, and I figured less might better document
intent. If the standard later extended less, this should allow this class
to inherit the extension.