Re: Optimisation of std::binary_search of the header

2017-05-31 Thread jay pokarna
and the std::binary_search? Thanks, Jay Pokarna On Wed, May 31, 2017 at 3:50 AM, Mike Stump wrote: > On May 29, 2017, at 1:05 AM, jay pokarna wrote: >> >> Could you give me the contact of the standard committee? > > https://isocpp.org/std/the-committee > -- Regards,

Re: Optimisation of std::binary_search of the header

2017-05-29 Thread jay pokarna
Respected Sir, Could you give me the contact of the standard committee which handles changes to the c++ standard. Regards, Jay Pokarna On Mon, May 29, 2017 at 2:17 PM, Tim Shen wrote: > On Mon, May 29, 2017 at 1:05 AM, jay pokarna wrote: >>>> The techni

Re: Optimisation of std::binary_search of the header

2017-05-29 Thread jay pokarna
? Regards, Jay Pokarna On Mon, May 29, 2017 at 1:13 PM, Tim Song wrote: > I'm not sure if you forgot to CC the lists or intended to direct the > email to me alone. > > On Mon, May 29, 2017 at 2:41 AM, jay pokarna wrote: >> I know that cpp wants to generalise its methods so t

Optimisation of std::binary_search of the header

2017-05-28 Thread jay pokarna
art)/2); if(!fun_ptr(arr[mid],ele)&&!fun_ptr(ele,arr[mid])) /* This is equivalent to checking the condition ele == arr[mid] */ { return bool(1); } else if(fun_ptr(arr[mid],ele)) { start = mid+1; } else { end = mid-1; } } return bool(0); } Regards, Jay Pokarna