Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-02-16 23:26:44


"Max Motovilov" <max_at_[hidden]> writes:

> Dave,
>
> Thanks! Isn't there a problem with equal_range() where both the
> first edition of the standard and the work paper you referred to
> explicitly mention comp(e,value) and comp(value,e)? That, while
> consistent with the behavior of the original STL, seems to still
> require a symmetrical predicate...

Yes, equal_range does require a symmetrical predicate in the sense
that you can pass both e or value as either parameter. However, e and
value don't have to be the same type.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net