[patch] libstdc++/60976 allocator_traits<allocator<T>> partial specialization
Jonathan Wakely
jwakely@redhat.com
Mon Jan 11 16:48:00 GMT 2016
This adds a specialization of std::allocator_traits<std::allocator<T>>
in order to avoid doing all the heavy SFINAE work to detect which
members are present in the allocator. We don't need to check for them
because we know the exact properties of std::allocator<T> so can just
hard-code them.
This helps reduce some of the increased compilation time due to the
C++11 allocator support, but we're still slower than 4.8 (which might
be unavoidable).
Tested x86_64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 5998 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160111/4f4b228e/attachment.bin>
More information about the Libstdc++
mailing list