[PATCH, libstdc++] Uniform container erasure for c++20.

Jakub Jelinek jakub@redhat.com
Thu Nov 29 14:12:00 GMT 2018


On Thu, Nov 29, 2018 at 08:47:15AM -0500, Ed Smith-Rowland wrote:
> --- include/std/deque	(revision 266567)
> +++ include/std/deque	(working copy)
> @@ -58,6 +58,7 @@
>  #pragma GCC system_header
>  
>  #include <bits/stl_algobase.h>
> +#include <bits/stl_algo.h> // For remove and remove_if

Isn't that too expensive, especially in non-C++20 modes?
stl_algo.h is larger than 200KB.

So, could these includes be either guarded with __cplusplus > 201703
if they are only needed for C++20, or better have bits/stl_remove.h
containing just those?

	Jakub



More information about the Libstdc++ mailing list