]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/include/ext/pb_ds/detail/bin_search_tree_/traits.hpp
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / include / ext / pb_ds / detail / bin_search_tree_ / traits.hpp
index 49777d5a637ef2630375f88115620ad3923adb61..66742411bbeb7b8116bb1e5665fd3cf1cb1f3626 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2005-2018 Free Software Foundation, Inc.
+// Copyright (C) 2005-2024 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the terms
@@ -64,14 +64,14 @@ namespace __gnu_pbds
     {
     private:
       typedef types_traits<Key, Mapped, _Alloc, false> type_traits;
+      typedef rebind_traits<_Alloc, Node> node_alloc_traits;
 
     public:
       typedef Node node;
 
       typedef
       bin_search_tree_const_it_<
-       typename _Alloc::template rebind<
-       node>::other::pointer,
+       typename node_alloc_traits::pointer,
        typename type_traits::value_type,
        typename type_traits::pointer,
        typename type_traits::const_pointer,
@@ -83,8 +83,7 @@ namespace __gnu_pbds
 
       typedef
       bin_search_tree_it_<
-       typename _Alloc::template rebind<
-       node>::other::pointer,
+       typename node_alloc_traits::pointer,
        typename type_traits::value_type,
        typename type_traits::pointer,
        typename type_traits::const_pointer,
@@ -96,8 +95,7 @@ namespace __gnu_pbds
 
       typedef
       bin_search_tree_const_it_<
-       typename _Alloc::template rebind<
-       node>::other::pointer,
+       typename node_alloc_traits::pointer,
        typename type_traits::value_type,
        typename type_traits::pointer,
        typename type_traits::const_pointer,
@@ -109,8 +107,7 @@ namespace __gnu_pbds
 
       typedef
       bin_search_tree_it_<
-       typename _Alloc::template rebind<
-       node>::other::pointer,
+       typename node_alloc_traits::pointer,
        typename type_traits::value_type,
        typename type_traits::pointer,
        typename type_traits::const_pointer,
@@ -171,14 +168,14 @@ namespace __gnu_pbds
     {
     private:
       typedef types_traits<Key, null_type, _Alloc, false> type_traits;
+      typedef rebind_traits<_Alloc, Node> node_alloc_traits;
 
     public:
       typedef Node node;
 
       typedef
       bin_search_tree_const_it_<
-       typename _Alloc::template rebind<
-       node>::other::pointer,
+       typename node_alloc_traits::pointer,
        typename type_traits::value_type,
        typename type_traits::pointer,
        typename type_traits::const_pointer,
@@ -192,8 +189,7 @@ namespace __gnu_pbds
 
       typedef
       bin_search_tree_const_it_<
-       typename _Alloc::template rebind<
-       node>::other::pointer,
+       typename node_alloc_traits::pointer,
        typename type_traits::value_type,
        typename type_traits::pointer,
        typename type_traits::const_pointer,