Re: [RFC] Come up with is_empty for hash_{table,map,set}.

2019-04-29 Thread Richard Biener
On Mon, Apr 29, 2019 at 10:40 AM Martin Liška wrote: > > On 4/26/19 10:37 PM, Bernhard Reutner-Fischer wrote: > > On 26 April 2019 14:07:20 CEST, Richard Biener > > wrote: > >> On Fri, Apr 26, 2019 at 11:26 AM Martin Liška wrote: > >>> > >>> Hi. > >>> > >>> We do have vec<...>::is_empty functio

Re: [RFC] Come up with is_empty for hash_{table,map,set}.

2019-04-29 Thread Martin Liška
On 4/26/19 10:37 PM, Bernhard Reutner-Fischer wrote: > On 26 April 2019 14:07:20 CEST, Richard Biener > wrote: >> On Fri, Apr 26, 2019 at 11:26 AM Martin Liška wrote: >>> >>> Hi. >>> >>> We do have vec<...>::is_empty function, but not for >> hash_{table,map,set}. >>> Would you mind adding the fu

Re: [RFC] Come up with is_empty for hash_{table,map,set}.

2019-04-26 Thread Bernhard Reutner-Fischer
On 26 April 2019 14:07:20 CEST, Richard Biener wrote: >On Fri, Apr 26, 2019 at 11:26 AM Martin Liška wrote: >> >> Hi. >> >> We do have vec<...>::is_empty function, but not for >hash_{table,map,set}. >> Would you mind adding the function and using it? If so, I can prepare >> a complete patch that

Re: [RFC] Come up with is_empty for hash_{table,map,set}.

2019-04-26 Thread Richard Biener
On Fri, Apr 26, 2019 at 11:26 AM Martin Liška wrote: > > Hi. > > We do have vec<...>::is_empty function, but not for hash_{table,map,set}. > Would you mind adding the function and using it? If so, I can prepare > a complete patch that will replace all usages of 'elements () > 0', > '!elements ()'

[RFC] Come up with is_empty for hash_{table,map,set}.

2019-04-26 Thread Martin Liška
Hi. We do have vec<...>::is_empty function, but not for hash_{table,map,set}. Would you mind adding the function and using it? If so, I can prepare a complete patch that will replace all usages of 'elements () > 0', '!elements ()', ... Martin >From 5483c1390871733c944470db063e3f9651d4c020 Mon Se