[PATCH] Limit includes in hashtable_policy.h

François Dumont frs.dumont@gmail.com
Thu Feb 27 18:30:00 GMT 2020


When I use std::is_permutation in hashtable_policy.h I included 
stl_algo.h which is a large header. No other header in include/bits does 
this, I would prefer not being the first to do such a thing.

As it is a recent change I prefer to submit this patch now.

Git commit message:

     libstdc++ Hashtable: Move std::is_permutation to limit includes

     * include/bits/stl_algo.h (__find_if, __count_if, 
std::is_permutation): Move...
     * include/bits/stl_algobase.h: ...here.
     * include/bits/hashtable_policy.h: Remove <bits/stl_algo.h> include.

testsuite/23_containers/unordered* tested under Linux x86_64, I'll run 
full before any commit.

Ok to commit now ?

Ok to commit once back in stage 1 ?

François

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hashtable_policy.patch
Type: text/x-patch
Size: 11609 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20200227/dc95e22a/attachment.bin>


More information about the Libstdc++ mailing list