https://gcc.gnu.org/g:6a6b8b847bce78a909379f3b9d3365c4ac4f0ff5

commit r15-5019-g6a6b8b847bce78a909379f3b9d3365c4ac4f0ff5
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Thu Nov 7 11:14:19 2024 +0000

    libstdc++: Tweak comments on includes in hashtable headers
    
    std::is_permutation is only used in <bits/hashtable.h> not in
    <bits/hashtable_policy.h>, so move the comment referring to it.
    
    libstdc++-v3/ChangeLog:
    
            * include/bits/hashtable.h: Add is_permutation to comment.
            * include/bits/hashtable_policy.h: Remove it from comment.

Diff:
---
 libstdc++-v3/include/bits/hashtable.h        | 2 +-
 libstdc++-v3/include/bits/hashtable_policy.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/include/bits/hashtable.h 
b/libstdc++-v3/include/bits/hashtable.h
index 8b312d25d7ae..d36b32a7e3fa 100644
--- a/libstdc++-v3/include/bits/hashtable.h
+++ b/libstdc++-v3/include/bits/hashtable.h
@@ -36,7 +36,7 @@
 
 #include <bits/hashtable_policy.h>
 #include <bits/enable_special_members.h>
-#include <bits/stl_algobase.h> // fill_n
+#include <bits/stl_algobase.h> // fill_n, is_permutation
 #include <bits/stl_function.h> // __has_is_transparent_t
 #if __cplusplus > 201402L
 # include <bits/node_handle.h>
diff --git a/libstdc++-v3/include/bits/hashtable_policy.h 
b/libstdc++-v3/include/bits/hashtable_policy.h
index 5d79e2ba26f4..d8b201864c1a 100644
--- a/libstdc++-v3/include/bits/hashtable_policy.h
+++ b/libstdc++-v3/include/bits/hashtable_policy.h
@@ -33,7 +33,7 @@
 
 #include <tuple>               // for std::tuple, std::forward_as_tuple
 #include <bits/functional_hash.h> // for __is_fast_hash
-#include <bits/stl_algobase.h> // for std::min, std::is_permutation.
+#include <bits/stl_algobase.h> // for std::min
 #include <bits/stl_pair.h>     // for std::pair
 #include <ext/aligned_buffer.h>        // for __gnu_cxx::__aligned_buffer
 #include <ext/alloc_traits.h>  // for std::__alloc_rebind

Reply via email to