|
Boost : |
Subject: Re: [boost] [Iterator][MultiIndex]iterator-specificpartition_point-related functions
From: David Abrahams (dave_at_[hidden])
Date: 2008-11-28 11:05:05
on Thu Nov 27 2008, Joaquin M Lopez Munoz <joaquin-AT-tid.es> wrote:
> why can't you just have
>
> namespace boost{
>
> template<typename _It,typename Val,typenameBinPred>
> _It lower_bound(_It itBegin,_It itEnd,const Val &x,BinPred pred){
> using namespace boost;
> return partition_point(itBegin,itEnd,!boost::bind(pred,_1,x)); // ADL used
> }
>
> }
One reason is that the above uses identifiers reserved to the
implementation. ;-)
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk