re PR libstdc++/15775 (Allocator::pointer consistently ignored)
2004-06-09 Paolo Carlini <pcarlini@suse.de> PR libstdc++/15775 * include/bits/stl_deque.h: Consistently with stl_set.h, define pointer as allocator's pointer, likewise for reference, const_pointer, and const_reference. * include/bits/stl_list.h: Likewise. * include/bits/stl_map.h: Likewise. * include/bits/stl_multimap.h: Likewise. * include/bits/stl_vector.h: Likewise. From-SVN: r82857
This commit is contained in:
parent
80d23e4959
commit
7338fc64dd
@ -1,3 +1,14 @@
|
||||
2004-06-09 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
PR libstdc++/15775
|
||||
* include/bits/stl_deque.h: Consistently with stl_set.h, define
|
||||
pointer as allocator's pointer, likewise for reference,
|
||||
const_pointer, and const_reference.
|
||||
* include/bits/stl_list.h: Likewise.
|
||||
* include/bits/stl_map.h: Likewise.
|
||||
* include/bits/stl_multimap.h: Likewise.
|
||||
* include/bits/stl_vector.h: Likewise.
|
||||
|
||||
2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* crossconfig.m4: Remove signbit, signbitf, signbitl.
|
||||
|
@ -595,14 +595,14 @@ namespace _GLIBCXX_STD
|
||||
|
||||
public:
|
||||
typedef _Tp value_type;
|
||||
typedef value_type* pointer;
|
||||
typedef const value_type* const_pointer;
|
||||
typedef typename _Alloc::pointer pointer;
|
||||
typedef typename _Alloc::const_pointer const_pointer;
|
||||
typedef typename _Alloc::reference reference;
|
||||
typedef typename _Alloc::const_reference const_reference;
|
||||
typedef typename _Base::iterator iterator;
|
||||
typedef typename _Base::const_iterator const_iterator;
|
||||
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
|
||||
typedef std::reverse_iterator<iterator> reverse_iterator;
|
||||
typedef value_type& reference;
|
||||
typedef const value_type& const_reference;
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef typename _Base::allocator_type allocator_type;
|
||||
|
@ -394,18 +394,18 @@ namespace _GLIBCXX_STD
|
||||
typedef _List_base<_Tp, _Alloc> _Base;
|
||||
|
||||
public:
|
||||
typedef _Tp value_type;
|
||||
typedef value_type* pointer;
|
||||
typedef const value_type* const_pointer;
|
||||
typedef _List_iterator<_Tp> iterator;
|
||||
typedef _List_const_iterator<_Tp> const_iterator;
|
||||
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
|
||||
typedef std::reverse_iterator<iterator> reverse_iterator;
|
||||
typedef value_type& reference;
|
||||
typedef const value_type& const_reference;
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef typename _Base::allocator_type allocator_type;
|
||||
typedef _Tp value_type;
|
||||
typedef typename _Alloc::pointer pointer;
|
||||
typedef typename _Alloc::const_pointer const_pointer;
|
||||
typedef typename _Alloc::reference reference;
|
||||
typedef typename _Alloc::const_reference const_reference;
|
||||
typedef _List_iterator<_Tp> iterator;
|
||||
typedef _List_const_iterator<_Tp> const_iterator;
|
||||
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
|
||||
typedef std::reverse_iterator<iterator> reverse_iterator;
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef typename _Base::allocator_type allocator_type;
|
||||
|
||||
protected:
|
||||
// Note that pointers-to-_Node's can be ctor-converted to
|
||||
|
@ -126,17 +126,17 @@ namespace _GLIBCXX_STD
|
||||
public:
|
||||
// many of these are specified differently in ISO, but the following are
|
||||
// "functionally equivalent"
|
||||
typedef typename _Rep_type::allocator_type allocator_type;
|
||||
typedef typename _Rep_type::reference reference;
|
||||
typedef typename _Rep_type::const_reference const_reference;
|
||||
typedef typename _Rep_type::iterator iterator;
|
||||
typedef typename _Rep_type::const_iterator const_iterator;
|
||||
typedef typename _Rep_type::size_type size_type;
|
||||
typedef typename _Rep_type::difference_type difference_type;
|
||||
typedef typename _Rep_type::pointer pointer;
|
||||
typedef typename _Rep_type::const_pointer const_pointer;
|
||||
typedef typename _Rep_type::reverse_iterator reverse_iterator;
|
||||
typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator;
|
||||
typedef typename _Alloc::pointer pointer;
|
||||
typedef typename _Alloc::const_pointer const_pointer;
|
||||
typedef typename _Alloc::reference reference;
|
||||
typedef typename _Alloc::const_reference const_reference;
|
||||
typedef typename _Rep_type::allocator_type allocator_type;
|
||||
typedef typename _Rep_type::iterator iterator;
|
||||
typedef typename _Rep_type::const_iterator const_iterator;
|
||||
typedef typename _Rep_type::size_type size_type;
|
||||
typedef typename _Rep_type::difference_type difference_type;
|
||||
typedef typename _Rep_type::reverse_iterator reverse_iterator;
|
||||
typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator;
|
||||
|
||||
// [23.3.1.1] construct/copy/destroy
|
||||
// (get_allocator() is normally listed in this section, but seems to have
|
||||
|
@ -142,19 +142,18 @@ namespace _GLIBCXX_STD
|
||||
public:
|
||||
// many of these are specified differently in ISO, but the following are
|
||||
// "functionally equivalent"
|
||||
typedef typename _Alloc::pointer pointer;
|
||||
typedef typename _Alloc::const_pointer const_pointer;
|
||||
typedef typename _Alloc::reference reference;
|
||||
typedef typename _Alloc::const_reference const_reference;
|
||||
typedef typename _Rep_type::allocator_type allocator_type;
|
||||
typedef typename _Rep_type::reference reference;
|
||||
typedef typename _Rep_type::const_reference const_reference;
|
||||
typedef typename _Rep_type::iterator iterator;
|
||||
typedef typename _Rep_type::const_iterator const_iterator;
|
||||
typedef typename _Rep_type::size_type size_type;
|
||||
typedef typename _Rep_type::difference_type difference_type;
|
||||
typedef typename _Rep_type::pointer pointer;
|
||||
typedef typename _Rep_type::const_pointer const_pointer;
|
||||
typedef typename _Rep_type::reverse_iterator reverse_iterator;
|
||||
typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator;
|
||||
|
||||
|
||||
// [23.3.2] construct/copy/destroy
|
||||
// (get_allocator() is also listed in this section)
|
||||
/**
|
||||
|
@ -153,19 +153,19 @@ namespace _GLIBCXX_STD
|
||||
typedef vector<_Tp, _Alloc> vector_type;
|
||||
|
||||
public:
|
||||
typedef _Tp value_type;
|
||||
typedef value_type* pointer;
|
||||
typedef const value_type* const_pointer;
|
||||
typedef _Tp value_type;
|
||||
typedef typename _Alloc::pointer pointer;
|
||||
typedef typename _Alloc::const_pointer const_pointer;
|
||||
typedef typename _Alloc::reference reference;
|
||||
typedef typename _Alloc::const_reference const_reference;
|
||||
typedef __gnu_cxx::__normal_iterator<pointer, vector_type> iterator;
|
||||
typedef __gnu_cxx::__normal_iterator<const_pointer, vector_type>
|
||||
const_iterator;
|
||||
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
|
||||
typedef std::reverse_iterator<iterator> reverse_iterator;
|
||||
typedef value_type& reference;
|
||||
typedef const value_type& const_reference;
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef typename _Base::allocator_type allocator_type;
|
||||
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
|
||||
typedef std::reverse_iterator<iterator> reverse_iterator;
|
||||
typedef size_t size_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef typename _Base::allocator_type allocator_type;
|
||||
|
||||
protected:
|
||||
/** @if maint
|
||||
|
Loading…
Reference in New Issue
Block a user