On Tue, Apr 04, 2000 at 02:08:38AM +0200, Lars Gullik Bj&resh;nnes wrote:
> Dekel Tsur <[EMAIL PROTECTED]> writes:

> | 
> | You do need the InsetTable(pos, 0) even if you use a function
> | object.
> 
>  Why?
>       lower_bound(vec.begin(), vec.end(), cmppos(), pos, cmppos());

Do you mean lower_bound(vec.begin(), vec.end(), pos, cmppos()) ?

> 
>       struct cmppos {
>       public:
>               bool operator()(InsetTable const & a, pos_type p) const
>                       return a.pos < p;
>               }
>       };
> 

The above form of lower_bound works, but it doesn't appear in the SGI
documentation (http://www.sgi.com/Technology/STL/lower_bound.html)
Is it legal?

Reply via email to