assoc_container.hpp: Change allocator typedef to allocator_type, as per existing...
authorBenjamin Kosnik <bkoz@redhat.com>
Wed, 4 Jun 2008 15:53:09 +0000 (15:53 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Wed, 4 Jun 2008 15:53:09 +0000 (15:53 +0000)
2008-06-04  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/pb_ds/assoc_container.hpp: Change allocator typedef
to allocator_type, as per existing conventions.
* include/ext/pb_ds/detail/binomial_heap_base_/
binomial_heap_base_.hpp: Same.
* include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp: Same.
* include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp: Same.
* include/ext/pb_ds/detail/bin_search_tree_/bin_search_tree_.hpp: Same.
* include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Same.
* include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: Same.
* include/ext/pb_ds/detail/trie_policy/trie_policy_base.hpp: Same.
* include/ext/pb_ds/detail/pairing_heap_/pairing_heap_.hpp: Same.
* include/ext/pb_ds/detail/binomial_heap_/binomial_heap_.hpp: Same.
* include/ext/pb_ds/detail/left_child_next_sibling_heap_/
left_child_next_sibling_heap_.hpp: Same.
* include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp: Same.
* include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hpp: Same.
* include/ext/pb_ds/detail/splay_tree_/splay_tree_.hpp: Same.
* include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp: Same.
* include/ext/pb_ds/detail/rc_binomial_heap_/
rc_binomial_heap_.hpp: Same.
* include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp: Same.
* include/ext/pb_ds/detail/rb_tree_map_/rb_tree_.hpp: Same.
* include/ext/pb_ds/list_update_policy.hpp: Same.
* include/ext/pb_ds/exception.hpp: Same.
* include/ext/pb_ds/tree_policy.hpp: Same.
* include/ext/pb_ds/trie_policy.hpp: Same.
* include/ext/pb_ds/priority_queue.hpp: Same.
* testsuite/util/regression/trait/assoc/trait.hpp: Same.
* testsuite/util/regression/trait/assoc/type_trait.hpp: Same.
* testsuite/util/regression/rand/priority_queue/detail/
defs_fn_imps.hpp: Same.
* testsuite/util/regression/rand/priority_queue/detail/
operator_fn_imps.hpp: Same.
* testsuite/util/regression/rand/priority_queue/
container_rand_regression_test.hpp: Same.
* testsuite/util/regression/rand/assoc/detail/defs_fn_imps.hpp: Same.
* testsuite/util/regression/rand/assoc/detail/
operator_fn_imps.hpp: Same.
* testsuite/util/regression/rand/assoc/
container_rand_regression_test.hpp: Same.
* testsuite/util/native_type/assoc/native_multimap.hpp: Same.
* testsuite/util/native_type/assoc/native_hash_multimap.hpp: Same.
* testsuite/util/common_type/assoc/detail/
tree_supports_order_statistics.hpp: Same.
* testsuite/util/common_type/assoc/detail/
trie_supports_prefix_search.hpp: Same.
* testsuite/util/common_type/assoc/detail/
trie_supports_order_statistics.hpp: Same.

From-SVN: r136359

37 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/pb_ds/assoc_container.hpp
libstdc++-v3/include/ext/pb_ds/detail/bin_search_tree_/bin_search_tree_.hpp
libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp
libstdc++-v3/include/ext/pb_ds/detail/binomial_heap_/binomial_heap_.hpp
libstdc++-v3/include/ext/pb_ds/detail/binomial_heap_base_/binomial_heap_base_.hpp
libstdc++-v3/include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp
libstdc++-v3/include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp
libstdc++-v3/include/ext/pb_ds/detail/left_child_next_sibling_heap_/left_child_next_sibling_heap_.hpp
libstdc++-v3/include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp
libstdc++-v3/include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hpp
libstdc++-v3/include/ext/pb_ds/detail/pairing_heap_/pairing_heap_.hpp
libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp
libstdc++-v3/include/ext/pb_ds/detail/rb_tree_map_/rb_tree_.hpp
libstdc++-v3/include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp
libstdc++-v3/include/ext/pb_ds/detail/rc_binomial_heap_/rc_binomial_heap_.hpp
libstdc++-v3/include/ext/pb_ds/detail/splay_tree_/splay_tree_.hpp
libstdc++-v3/include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp
libstdc++-v3/include/ext/pb_ds/detail/trie_policy/trie_policy_base.hpp
libstdc++-v3/include/ext/pb_ds/exception.hpp
libstdc++-v3/include/ext/pb_ds/list_update_policy.hpp
libstdc++-v3/include/ext/pb_ds/priority_queue.hpp
libstdc++-v3/include/ext/pb_ds/tree_policy.hpp
libstdc++-v3/include/ext/pb_ds/trie_policy.hpp
libstdc++-v3/testsuite/util/common_type/assoc/detail/tree_supports_order_statistics.hpp
libstdc++-v3/testsuite/util/common_type/assoc/detail/trie_supports_order_statistics.hpp
libstdc++-v3/testsuite/util/common_type/assoc/detail/trie_supports_prefix_search.hpp
libstdc++-v3/testsuite/util/native_type/assoc/native_hash_multimap.hpp
libstdc++-v3/testsuite/util/native_type/assoc/native_multimap.hpp
libstdc++-v3/testsuite/util/regression/rand/assoc/container_rand_regression_test.hpp
libstdc++-v3/testsuite/util/regression/rand/assoc/detail/defs_fn_imps.hpp
libstdc++-v3/testsuite/util/regression/rand/assoc/detail/operator_fn_imps.hpp
libstdc++-v3/testsuite/util/regression/rand/priority_queue/container_rand_regression_test.hpp
libstdc++-v3/testsuite/util/regression/rand/priority_queue/detail/defs_fn_imps.hpp
libstdc++-v3/testsuite/util/regression/rand/priority_queue/detail/operator_fn_imps.hpp
libstdc++-v3/testsuite/util/regression/trait/assoc/trait.hpp
libstdc++-v3/testsuite/util/regression/trait/assoc/type_trait.hpp

index 1132ddd49da61c24a8f94f14286a4259d1c3a1d3..d06e303f343e98938d1297316e1142a4c85ba256 100644 (file)
@@ -1,3 +1,54 @@
+2008-06-04  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/ext/pb_ds/assoc_container.hpp: Change allocator typedef
+       to allocator_type, as per existing conventions. 
+       * include/ext/pb_ds/detail/binomial_heap_base_/
+       binomial_heap_base_.hpp: Same.
+       * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp: Same.
+       * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp: Same.
+       * include/ext/pb_ds/detail/bin_search_tree_/bin_search_tree_.hpp: Same.
+       * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Same.
+       * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: Same.
+       * include/ext/pb_ds/detail/trie_policy/trie_policy_base.hpp: Same.
+       * include/ext/pb_ds/detail/pairing_heap_/pairing_heap_.hpp: Same.
+       * include/ext/pb_ds/detail/binomial_heap_/binomial_heap_.hpp: Same.
+       * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
+       left_child_next_sibling_heap_.hpp: Same.
+       * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp: Same.
+       * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hpp: Same.
+       * include/ext/pb_ds/detail/splay_tree_/splay_tree_.hpp: Same.
+       * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp: Same.
+       * include/ext/pb_ds/detail/rc_binomial_heap_/
+       rc_binomial_heap_.hpp: Same.
+       * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp: Same.
+       * include/ext/pb_ds/detail/rb_tree_map_/rb_tree_.hpp: Same.
+       * include/ext/pb_ds/list_update_policy.hpp: Same.
+       * include/ext/pb_ds/exception.hpp: Same.
+       * include/ext/pb_ds/tree_policy.hpp: Same.
+       * include/ext/pb_ds/trie_policy.hpp: Same.
+       * include/ext/pb_ds/priority_queue.hpp: Same.
+       * testsuite/util/regression/trait/assoc/trait.hpp: Same.
+       * testsuite/util/regression/trait/assoc/type_trait.hpp: Same.
+       * testsuite/util/regression/rand/priority_queue/detail/
+       defs_fn_imps.hpp: Same.
+       * testsuite/util/regression/rand/priority_queue/detail/
+       operator_fn_imps.hpp: Same.
+       * testsuite/util/regression/rand/priority_queue/
+       container_rand_regression_test.hpp: Same.
+       * testsuite/util/regression/rand/assoc/detail/defs_fn_imps.hpp: Same.
+       * testsuite/util/regression/rand/assoc/detail/
+       operator_fn_imps.hpp: Same.
+       * testsuite/util/regression/rand/assoc/
+       container_rand_regression_test.hpp: Same.
+       * testsuite/util/native_type/assoc/native_multimap.hpp: Same.
+       * testsuite/util/native_type/assoc/native_hash_multimap.hpp: Same.
+       * testsuite/util/common_type/assoc/detail/
+       tree_supports_order_statistics.hpp: Same.
+       * testsuite/util/common_type/assoc/detail/
+       trie_supports_prefix_search.hpp: Same.
+       * testsuite/util/common_type/assoc/detail/
+       trie_supports_order_statistics.hpp: Same.
+       
 2008-06-02  Sandra Loosemore  <sandra@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
 
index e2ac37c11cc21201540eab6c710de9ea7cc6aa3b..8dbb43a9030e7b98e63d3f11aec7f70aac8586c9 100644 (file)
@@ -71,13 +71,13 @@ namespace __gnu_pbds
 
   public:
     typedef Tag                                        container_category;
-    typedef Allocator                                  allocator;
-    typedef typename allocator::size_type              size_type;
-    typedef typename allocator::difference_type        difference_type;
+    typedef Allocator                                  allocator_type;
+    typedef typename allocator_type::size_type                 size_type;
+    typedef typename allocator_type::difference_type   difference_type;
 
     // key_type
-    typedef typename allocator::template rebind<Key>::other::value_type key_type;
-    typedef typename allocator::template rebind<key_type>::other key_rebind;
+    typedef typename allocator_type::template rebind<Key>::other::value_type key_type;
+    typedef typename allocator_type::template rebind<key_type>::other key_rebind;
     typedef typename key_rebind::reference             key_reference;
     typedef typename key_rebind::const_reference       const_key_reference;
     typedef typename key_rebind::pointer               key_pointer;
@@ -85,7 +85,7 @@ namespace __gnu_pbds
 
     // mapped_type
     typedef Mapped                                     mapped_type;
-    typedef typename allocator::template rebind<mapped_type>::other mapped_rebind;
+    typedef typename allocator_type::template rebind<mapped_type>::other mapped_rebind;
     typedef typename mapped_rebind::reference          mapped_reference;
     typedef typename mapped_rebind::const_reference    const_mapped_reference;
     typedef typename mapped_rebind::pointer            mapped_pointer;
@@ -93,7 +93,7 @@ namespace __gnu_pbds
 
     // value_type
     typedef typename base_type::value_type             value_type;
-    typedef typename allocator::template rebind<value_type>::other value_rebind;
+    typedef typename allocator_type::template rebind<value_type>::other value_rebind;
     typedef typename value_rebind::reference           reference;
     typedef typename value_rebind::const_reference     const_reference;
     typedef typename value_rebind::pointer             pointer;
index 6e46cedbbe92557f6912dd43efa81c81e23d362f..587cfe06dcb10390dd94b1234ecc6bf8cd62bba3 100644 (file)
@@ -241,7 +241,7 @@ namespace __gnu_pbds
 
       typedef Cmp_Fn cmp_fn;
 
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
 
       typedef typename Node_And_It_Traits::node_update node_update;
 
index cf10195d28c5faa9b68d7819d0e465bffee0d411..310ddadf28ba3f1d9d4792b80c9e16381a99f76d 100644 (file)
@@ -178,7 +178,7 @@ namespace __gnu_pbds
 
       typedef Cmp_Fn cmp_fn;
 
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
 
     public:
 
index 8f1826ef16436dee3b1f43ed240dbecef2eb7a23..3641faad2a91d859dadee692b9659b73a7a783ad 100644 (file)
@@ -93,7 +93,7 @@ namespace __gnu_pbds
       typedef typename base_type::const_iterator const_iterator;
       typedef typename base_type::iterator iterator;
       typedef typename base_type::cmp_fn cmp_fn;
-      typedef typename base_type::allocator allocator;
+      typedef typename base_type::allocator_type allocator_type;
 
       binomial_heap_();
 
index acd1c3cf4dccb2c2048090436ac78484d447ced6..c77063618e53bdbad2c5645bd95882936926426c 100644 (file)
@@ -138,7 +138,7 @@ namespace __gnu_pbds
 
       typedef Cmp_Fn cmp_fn;
 
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
 
     public:
 
index 3a772fa1df8de0392be0ef1bb56f5d7a18938286..71c7327120e71e1dbcfa63f19d2188f730d5995c 100644 (file)
@@ -167,7 +167,7 @@ namespace __gnu_pbds
 #undef PB_DS_GEN_POS
 
     public:
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
       typedef typename Allocator::size_type size_type;
       typedef typename Allocator::difference_type difference_type;
       typedef Hash_Fn hash_fn;
index 8da31e70e8aabfcb1fef87481da654488b7c0906..2fcb25c8310d4e18de155335f5ffd6336461eded 100644 (file)
@@ -168,7 +168,7 @@ namespace __gnu_pbds
 #undef PB_DS_GEN_POS
 
     public:
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
       typedef typename Allocator::size_type size_type;
       typedef typename Allocator::difference_type difference_type;
       typedef Hash_Fn hash_fn;
index 196ae3010ca264a8aa7a005d1d91b621fad0a767..a200b7e36728fe62c6de4b7098d770764849eb3e 100644 (file)
@@ -194,7 +194,7 @@ namespace __gnu_pbds
 
       typedef Cmp_Fn cmp_fn;
 
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
 
     public:
 
index 267beccceaf1575dcff1cc3993a2052232abbca4..8b8b1cffe90e730dc5fc4666f91ffea9c6cfe908 100644 (file)
@@ -154,7 +154,7 @@ namespace __gnu_pbds
       typedef cond_dealtor<entry, Allocator> cond_dealtor_t;
 
     public:
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
       typedef typename Allocator::size_type size_type;
       typedef typename Allocator::difference_type difference_type;
       typedef Eq_Fn eq_fn;
index 421a6bea6176270684b4464ce4d24bfdfb4bd8a4..3abb259a78999975382dfe29857138875d5ea8c5 100644 (file)
@@ -158,7 +158,7 @@ namespace __gnu_pbds
 
     public:
 
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
       typedef typename Allocator::size_type size_type;
       typedef typename Allocator::difference_type difference_type;
 
index 6d3790653a4288b65994b228fe515e36ed3d3785..4ad1e4115d21fbdebc3a1cf9f7356f1c36b3c032 100644 (file)
@@ -137,7 +137,7 @@ namespace __gnu_pbds
 
       typedef Cmp_Fn cmp_fn;
 
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
 
 
       pairing_heap_();
index 00a00d34bcec3c0f67bd097705154b44fa888ba8..eb55ea52e015edd276d51c1fbf1ee345d7035c37 100644 (file)
@@ -164,7 +164,7 @@ namespace __gnu_pbds
 
     public:
       typedef pat_trie_tag container_category;
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
       typedef typename Allocator::size_type size_type;
       typedef typename Allocator::difference_type difference_type;
 
index b5d50a92ae8ba021f875cf96490343d75bc57550..6d638395bac16fb0d46b316faa058cc41143ffdd 100644 (file)
@@ -124,7 +124,7 @@ namespace __gnu_pbds
 
     public:
       typedef Cmp_Fn cmp_fn;
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
       typedef typename Allocator::size_type size_type;
       typedef typename Allocator::difference_type difference_type;
       typedef typename base_type::key_type key_type;
index fc90ea7dea240836663e13643edb1ce2280655b1..a0832bf97b6250b5d9fb0daa49a16bbc70425964 100644 (file)
@@ -62,24 +62,24 @@ namespace __gnu_pbds
     class rc
     {
     private:
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
 
-      typedef typename allocator::size_type size_type;
+      typedef typename allocator_type::size_type size_type;
 
       typedef Node node;
 
       typedef
-      typename allocator::template rebind<
+      typename allocator_type::template rebind<
        node>::other::pointer
       node_pointer;
 
       typedef
-      typename allocator::template rebind<
+      typename allocator_type::template rebind<
        node_pointer>::other::pointer
       entry_pointer;
 
       typedef
-      typename allocator::template rebind<
+      typename allocator_type::template rebind<
        node_pointer>::other::const_pointer
       const_entry_pointer;
 
index 5b4a3b4122fc001f22c81fed15e2bcdfd302507c..729dccf3c77d12a8e6a0dfaf66561d9718965771 100644 (file)
@@ -112,7 +112,7 @@ namespace __gnu_pbds
 
       typedef typename base_type::cmp_fn cmp_fn;
 
-      typedef typename base_type::allocator allocator;
+      typedef typename base_type::allocator_type allocator_type;
 
     public:
 
index 1642abb068f898e6d1dad345b351d3da77d10630..10be0c2a4cf97a62e7a2ac753b618bb0180e8add 100644 (file)
@@ -145,7 +145,7 @@ namespace __gnu_pbds
       typedef typename base_type::node_pointer node_pointer;
 
     public:
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
       typedef typename Allocator::size_type size_type;
       typedef typename Allocator::difference_type difference_type;
       typedef Cmp_Fn cmp_fn;
index ee874e823be9975ac6e6b1af36b90e7074ccfee4..9eb617dcf09334fef7ae1d2037cb8dc0d0aaa031 100644 (file)
@@ -137,7 +137,7 @@ namespace __gnu_pbds
 
       typedef Cmp_Fn cmp_fn;
 
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
 
     public:
 
index 2a1319a4629624654cdb8c5e8c5916ff2a709f42..c114630361672d7c760851e8ce2f5b439f462b95 100644 (file)
@@ -85,9 +85,9 @@ namespace __gnu_pbds
 
       typedef E_Access_Traits e_access_traits;
 
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
 
-      typedef typename allocator::size_type size_type;
+      typedef typename allocator_type::size_type size_type;
 
       typedef null_node_metadata metadata_type;
 
index 77d3f2d69272b64334e1e58a69d2a099aba49e06..4a35931b3c567b15e458ade91874a847ddff86dc 100644 (file)
@@ -61,7 +61,7 @@ namespace __gnu_pbds
 
   // An entry cannot be inserted into a container object for logical
   // reasons (not, e.g., if memory is unabvailable, in which case
-  // the allocator's exception will be thrown).
+  // the allocator_type's exception will be thrown).
   struct insert_error : public container_error { };
 
   // A join cannot be performed logical reasons (i.e., the ranges of
index 5a63a3e16dc6ff05238a029c104fd43593f9f7b3..67a4e883fa78bfdfbb5261a4ec4cc83247519b65 100644 (file)
@@ -66,13 +66,13 @@ namespace __gnu_pbds
   class move_to_front_lu_policy
   {
   public:
-    typedef Allocator allocator;
+    typedef Allocator allocator_type;
       
     // Metadata on which this functor operates.
     typedef null_lu_metadata metadata_type;
       
     // Reference to metadata on which this functor operates.
-    typedef typename allocator::template rebind<metadata_type>::other metadata_rebind;
+    typedef typename allocator_type::template rebind<metadata_type>::other metadata_rebind;
     typedef typename metadata_rebind::reference metadata_reference;
       
     // Creates a metadata object.
@@ -103,14 +103,14 @@ namespace __gnu_pbds
   : private detail::counter_lu_policy_base<typename Allocator::size_type>
   {
   public:
-    typedef Allocator allocator;
+    typedef Allocator allocator_type;
 
     enum
       {
        max_count = Max_Count
       };
 
-    typedef typename allocator::size_type size_type;
+    typedef typename allocator_type::size_type size_type;
 
     // Metadata on which this functor operates.
     typedef detail::counter_lu_metadata<size_type> metadata_type;
index 90ffafffefaae8f42dce0885b1e5b25220a626dc..3433f5116feac51ed83892b682b17390a0a8f0db 100644 (file)
@@ -68,11 +68,11 @@ namespace __gnu_pbds
     typedef Value_Type                                         value_type;
     typedef Cmp_Fn                                     cmp_fn;
     typedef Tag                                        container_category;
-    typedef Allocator                                  allocator;
-    typedef typename allocator::size_type              size_type;
-    typedef typename allocator::difference_type        difference_type;
+    typedef Allocator                                  allocator_type;
+    typedef typename allocator_type::size_type                 size_type;
+    typedef typename allocator_type::difference_type   difference_type;
 
-    typedef typename allocator::template rebind<value_type>::other value_rebind;
+    typedef typename allocator_type::template rebind<value_type>::other value_rebind;
     typedef typename value_rebind::reference           reference;
     typedef typename value_rebind::const_reference     const_reference;
     typedef typename value_rebind::pointer             pointer;
index dedabec5c48867429528c66ee565f6c0308eeffc..1f3da0ee481f04a1c6106499034976ec275772b0 100644 (file)
@@ -80,8 +80,8 @@ namespace __gnu_pbds
 
   public:
     typedef Cmp_Fn cmp_fn;
-    typedef Allocator allocator;
-    typedef typename allocator::size_type size_type;
+    typedef Allocator allocator_type;
+    typedef typename allocator_type::size_type size_type;
     typedef typename base_type::key_type key_type;
     typedef typename base_type::const_key_reference const_key_reference;
 
@@ -120,7 +120,7 @@ namespace __gnu_pbds
     // Const pointer to the container's value-type.
     typedef typename base_type::const_pointer const_pointer;
 
-    typedef typename allocator::template rebind<metadata_type>::other metadata_rebind;
+    typedef typename allocator_type::template rebind<metadata_type>::other metadata_rebind;
     // Const metadata reference.
     typedef typename metadata_rebind::const_reference const_metadata_reference;
 
index b18de195ed888b23ee1decca8be971d7c1f7691d..642c5300a660d8f593af2def89421808d06ac3b3 100644 (file)
@@ -167,10 +167,10 @@ namespace __gnu_pbds
     typedef typename e_access_traits::const_iterator const_e_iterator;
 
     // Allocator type.
-    typedef Allocator allocator;
+    typedef Allocator allocator_type;
 
     // Size type.
-    typedef typename allocator::size_type size_type;
+    typedef typename allocator_type::size_type size_type;
     typedef detail::null_node_metadata metadata_type;
     typedef Const_Node_Iterator const_node_iterator;
     typedef Node_Iterator node_iterator;
@@ -256,8 +256,8 @@ namespace __gnu_pbds
   public:
     typedef E_Access_Traits e_access_traits;
     typedef typename e_access_traits::const_iterator const_e_iterator;
-    typedef Allocator allocator;
-    typedef typename allocator::size_type size_type;
+    typedef Allocator allocator_type;
+    typedef typename allocator_type::size_type size_type;
     typedef typename base_type::key_type key_type;
     typedef typename base_type::const_key_reference const_key_reference;
 
index f4b231104917aba62cb44abcd516ac670a10523d..c219271a8c4801afaaf54cf64323b1e3dbdfe8b4 100644 (file)
@@ -69,7 +69,7 @@ namespace __gnu_pbds
             typename Tree_Cntnr::const_node_iterator,
             typename Tree_Cntnr::node_iterator,
             typename Tree_Cntnr::cmp_fn,
-            typename Tree_Cntnr::allocator> >::value
+            typename Tree_Cntnr::allocator_type> >::value
          };
       };
 
index c23708f23ccefdf3d9fdbdbfaaf300347f12d4bd..82d4780428685311a987b8c7c373038b02d5f443 100644 (file)
@@ -69,7 +69,7 @@ namespace __gnu_pbds
             typename Tree_Cntnr::const_node_iterator,
             typename Tree_Cntnr::node_iterator,
             typename Tree_Cntnr::e_access_traits,
-            typename Tree_Cntnr::allocator> >::value
+            typename Tree_Cntnr::allocator_type> >::value
          };
       };
 
index 0adf029507e454ec568f9fec2571662e77d5ea7d..5b8c4f3759d4c2dc57f4ca74f738a2b60d03573c 100644 (file)
@@ -69,7 +69,7 @@ namespace __gnu_pbds
             typename Tree_Cntnr::const_node_iterator,
             typename Tree_Cntnr::node_iterator,
             typename Tree_Cntnr::e_access_traits,
-            typename Tree_Cntnr::allocator> >::value
+            typename Tree_Cntnr::allocator_type> >::value
          };
       };
 
index a3f82ba8a75b405a629ba7c25bde65a6910c915f..f644ae2de1aa2deffb1c41fb4ceafbf7d1f1f5f8 100644 (file)
@@ -76,12 +76,12 @@ namespace __gnu_pbds
 
     public:
       typedef native_hash_tag                  container_category;
-      typedef Allocator                        allocator;
+      typedef Allocator                        allocator_type;
       typedef typename base_type::iterator     iterator;
       typedef typename base_type::const_iterator const_iterator;
 
       typedef
-      typename allocator::template rebind<pair_type>::other::const_reference
+      typename allocator_type::template rebind<pair_type>::other::const_reference
       const_reference;
 
       native_hash_multimap() : base_type(Init_Size)
index 906fca3244ec5c00bdd2dc2026e4450b751b2964..c9e1211429678cbafefb1d296f52cb560e6419f5 100644 (file)
@@ -70,7 +70,7 @@ namespace __gnu_pbds
     public:
       typedef native_tree_tag container_category;
 
-      typedef Allocator allocator;
+      typedef Allocator allocator_type;
 
       typedef
       typename Allocator::template rebind<
index 7eaa3968f9a09ec20a4fae21054017952ed52378..af0a8e17b7e80d9ccd9b883f5f0f9673715054c4 100644 (file)
@@ -129,7 +129,7 @@ namespace detail
 
   private:
     typedef Cntnr                                      cntnr;
-    typedef typename cntnr::allocator                  allocator;
+    typedef typename cntnr::allocator_type                     allocator_type;
     typedef typename cntnr::size_type                  size_type;
     typedef regression_test_traits<Cntnr>              test_traits;
     typedef typename test_traits::key_type             key_type;
index 0acb20cd62e01138aca66990082af8de4ff190fb..f3e01d97fac8684b303e3241b8f79de7e2057fb8 100644 (file)
@@ -180,7 +180,7 @@ void
 PB_DS_CLASS_C_DEC::
 policy_defs()
 {
-  typedef typename Cntnr::allocator test_allocator;
+  typedef typename Cntnr::allocator_type test_allocator;
 
   policy_defs(typename Cntnr::container_category());
 }
index 323376480d3d067982e15cc2f2e8a632ef19645c..8c11f765766d605c0384bbb0a696cd5c9be1f200 100644 (file)
@@ -71,7 +71,7 @@ operator()()
       for (m_i = 0; m_i < m_n; ++m_i)
         {
          PB_DS_TRACE("Op #" << static_cast<unsigned long>(m_i));
-         allocator::set_label(m_i);
+         allocator_type::set_label(m_i);
          switch (m_i)
             {
             case 0:
index eeedc27bdcacced9708119dcb8a955a7d657ab1f..dadf8b4d7b58db6bb4fb66afd50ec0a374b40363 100644 (file)
@@ -141,7 +141,7 @@ namespace __gnu_pbds
       private:
        typedef Cntnr cntnr;
 
-       typedef typename cntnr::allocator allocator;
+       typedef typename cntnr::allocator_type allocator_type;
 
        typedef typename cntnr::size_type size_type;
 
index 85bc6b0a14e481c24bd339021e1cf6a750f62f9d..ae406937337c6e89b9ee395eabbe33fc2d0c5ad4 100644 (file)
@@ -50,15 +50,10 @@ PB_DS_CLASS_C_DEC::
 defs()
 {
   // General container types.
-
   typedef typename Cntnr::size_type test_size_type;
-
   typedef typename Cntnr::difference_type difference_type;
-
   value_defs();
-
   iterator_defs();
-
   policy_defs();
 }
 
@@ -68,13 +63,9 @@ PB_DS_CLASS_C_DEC::
 value_defs()
 {
   typedef typename Cntnr::value_type test_value_type;
-
   typedef typename Cntnr::reference test_reference;
-
   typedef typename Cntnr::const_reference test_const_reference;
-
   typedef typename Cntnr::pointer test_pointer;
-
   typedef typename Cntnr::const_pointer test_const_pointer;
 }
 
@@ -92,11 +83,8 @@ PB_DS_CLASS_C_DEC::
 iterator_defs()
 {
   typedef typename Cntnr::point_iterator test_point_iterator;
-
   typedef typename Cntnr::const_point_iterator const_test_point_iterator;
-
   typedef typename Cntnr::iterator test_iterator;
-
   typedef typename Cntnr::const_iterator const_test_iterator;
 }
 
@@ -105,7 +93,6 @@ void
 PB_DS_CLASS_C_DEC::
 policy_defs()
 {
-  typedef typename Cntnr::allocator test_allocator;
-
+  typedef typename Cntnr::allocator_type test_allocator;
   typedef typename Cntnr::cmp_fn test_cmp_fn;
 }
index 7a34b8121676af9b2434a4ee8a73ce3f7ee4ba3c..6186991984373493b6e079c062933046cd6ce9c0 100644 (file)
@@ -71,7 +71,7 @@ operator()()
       for (m_i = 0; m_i < m_n; ++m_i)
         {
          PB_DS_TRACE("Op #" << static_cast<unsigned long>(m_i));
-         allocator::set_label(m_i);
+         allocator_type::set_label(m_i);
          switch(m_i)
             {
             case 0:
index e8791a4472ad4fa67fc7833dde157e865094141e..5e97aea41e50589482dcc40bae4a48bccfa8b002 100644 (file)
@@ -76,7 +76,7 @@ namespace detail
 #define PB_DS_NATIVE_TYPE_TRAITS_C_DEC \
   native_type_traits<typename PB_DS_TYPE_TRAITS_C_DEC::key_type, \
                     typename PB_DS_TYPE_TRAITS_C_DEC::mapped_type, \
-                    typename Cntnr::allocator>
+                    typename Cntnr::allocator_type>
 
 #define PB_DS_RESIZE_TRAITS_C_DEC \
   regression_test_resize_traits<Cntnr, typename Cntnr::container_category>
index 5c0682de38f55495812c8b9acb02d3f7fdb41fc0..b9db4a71b3d277a497e273df3b58d464113442ca 100644 (file)
@@ -82,12 +82,12 @@ namespace __gnu_pbds
        { return extract_key_imp(r_val); }
 
       private:
-       typedef typename cntnr::allocator::template rebind<basic_type>::other
+       typedef typename cntnr::allocator_type::template rebind<basic_type>::other
        basic_type_rebind;
        
        typedef typename basic_type_rebind::const_reference basic_type_const_reference;
 
-       typedef typename cntnr::allocator::template rebind<std::pair<basic_type, basic_type> >::other pair_type_rebind;
+       typedef typename cntnr::allocator_type::template rebind<std::pair<basic_type, basic_type> >::other pair_type_rebind;
        typedef typename pair_type_rebind::const_reference pair_type_const_reference;
 
        template<typename Gen>