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

Martin Liška mliska@suse.cz
Fri Apr 26 10:48:00 GMT 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Come-up-with-is_empty-for-hash_-table-map-set.patch
Type: text/x-patch
Size: 5120 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190426/b479700c/attachment.bin>


More information about the Gcc-patches mailing list