]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
traits.hpp: Qualify types.
authorRichard Guenther <rguenther@suse.de>
Mon, 11 Dec 2006 10:48:56 +0000 (10:48 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 11 Dec 2006 10:48:56 +0000 (10:48 +0000)
2006-12-11  Richard Guenther  <rguenther@suse.de>
    Paolo Carlini  <pcarlini@suse.de>

* include/ext/pb_ds/detail/pat_trie_/traits.hpp: Qualify types.
* include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: Likewise.
* include/ext/rope: Likewise.
* include/bits/stl_tree.h (struct _Rb_tree): Change the _Link_type
typedefs to use _Rb_tree_node<_Val> directly.
(_M_get_node, _M_put_node): Use _Link_type.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
From-SVN: r119732

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_tree.h
libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp
libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/traits.hpp
libstdc++-v3/include/ext/rope

index a1f612946a1cb5fe0f9d61fb25a1941973a9df21..0b85eadb6a84060f70fe15d0e8be62fd0b51b443 100644 (file)
@@ -1,3 +1,13 @@
+2006-12-11  Richard Guenther  <rguenther@suse.de>
+           Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/pb_ds/detail/pat_trie_/traits.hpp: Qualify types.
+       * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: Likewise.
+       * include/ext/rope: Likewise.
+       * include/bits/stl_tree.h (struct _Rb_tree): Change the _Link_type
+       typedefs to use _Rb_tree_node<_Val> directly.
+       (_M_get_node, _M_put_node): Use _Link_type.
+
 2006-12-10  Paolo Carlini  <pcarlini@suse.de>
 
        * src/valarray-inst.cc (__gslice_to_index): Optimize performance.
index a4215af7b76a95363d141564dd00cb67778935ff..d2efb3aa4eb7c7050e447a1e056d3553a5767d78 100644 (file)
@@ -326,7 +326,6 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
     protected:
       typedef _Rb_tree_node_base* _Base_ptr;
       typedef const _Rb_tree_node_base* _Const_Base_ptr;
-      typedef _Rb_tree_node<_Val> _Rb_tree_node;
 
     public:
       typedef _Key key_type;
@@ -335,8 +334,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       typedef const value_type* const_pointer;
       typedef value_type& reference;
       typedef const value_type& const_reference;
-      typedef _Rb_tree_node* _Link_type;
-      typedef const _Rb_tree_node* _Const_Link_type;
+      typedef _Rb_tree_node<_Val>* _Link_type;
+      typedef const _Rb_tree_node<_Val>* _Const_Link_type;
       typedef size_t size_type;
       typedef ptrdiff_t difference_type;
       typedef _Alloc allocator_type;
@@ -354,12 +353,12 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       { return allocator_type(_M_get_Node_allocator()); }
 
     protected:
-      _Rb_tree_node*
+      _Link_type
       _M_get_node()
       { return _M_impl._Node_allocator::allocate(1); }
 
       void
-      _M_put_node(_Rb_tree_node* __p)
+      _M_put_node(_Link_type __p)
       { _M_impl._Node_allocator::deallocate(__p, 1); }
 
       _Link_type
index 659b7732866f1753751ec291bc030d8e1e107c91..b32479b99d1f023b001a37224c25cf05a75315d4 100644 (file)
@@ -81,7 +81,7 @@ namespace pb_ds
     entry_cmp<Value_Type, Cmp_Fn, is_simple<Value_Type>::value, Allocator>::type
 
 #define PB_DS_RESIZE_POLICY_DEC        \
-    resize_policy<typename Allocator::size_type>
+    pb_ds::detail::resize_policy<typename Allocator::size_type>
 
     /**
      * class description = "Base class for some types of h3ap$">
index b10380937bc7376c5b296003fcb24025f2a83712..59aa30982684ef964df501f4791defc822894309 100644 (file)
@@ -93,7 +93,7 @@ namespace pb_ds
       typedef E_Access_Traits e_access_traits;
 
       typedef
-      synth_e_access_traits<
+      pb_ds::detail::synth_e_access_traits<
        type_traits,
        false,
        e_access_traits>
@@ -254,7 +254,7 @@ namespace pb_ds
       typedef E_Access_Traits e_access_traits;
 
       typedef
-      synth_e_access_traits<
+      pb_ds::detail::synth_e_access_traits<
        type_traits,
        true,
        e_access_traits>
index 0cfd21e44625eece26eae24ccb10874387f3909f..389fd0958d82bb3fb4771cd34aa5a946b3bdc2af 100644 (file)
@@ -78,8 +78,6 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   using std::size_t;
   using std::ptrdiff_t;
   using std::allocator;
-  using std::iterator;
-  using std::reverse_iterator;
   using std::_Destroy;
 
   // The _S_eos function is used for those functions that
@@ -165,7 +163,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   template<class _Sequence, size_t _Buf_sz = 100>
     class sequence_buffer
-    : public iterator<std::output_iterator_tag, void, void, void, void>
+    : public std::iterator<std::output_iterator_tag, void, void, void, void>
     {
     public:
       typedef typename _Sequence::value_type value_type;
@@ -1023,7 +1021,7 @@ protected:
   
   template<class _CharT, class _Alloc>
     class _Rope_iterator_base
-    : public iterator<std::random_access_iterator_tag, _CharT>
+    : public std::iterator<std::random_access_iterator_tag, _CharT>
     {
       friend class rope<_CharT, _Alloc>;
     public:
@@ -2017,7 +2015,7 @@ protected:
        //  but it's harder to make guarantees.
       }
 
-      typedef reverse_iterator<const_iterator> const_reverse_iterator;
+      typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
 
       const_reverse_iterator
       rbegin() const
@@ -2549,7 +2547,7 @@ protected:
       mutable_end()
       { return(iterator(this, size())); }
 
-      typedef reverse_iterator<iterator> reverse_iterator;
+      typedef std::reverse_iterator<iterator> reverse_iterator;
       
       reverse_iterator
       mutable_rbegin()