fix reference/const_reference

This commit is contained in:
Andreas Fabri 2018-04-17 07:02:43 +01:00
parent 303b0ab46e
commit 150dfbbfbc
1 changed files with 3 additions and 5 deletions

View File

@ -162,20 +162,18 @@ public:
typedef typename std::allocator_traits<Allocator>::value_type value_type; typedef typename std::allocator_traits<Allocator>::value_type value_type;
typedef typename std::allocator_traits<Allocator>::pointer pointer; typedef typename std::allocator_traits<Allocator>::pointer pointer;
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer; typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
typedef typename std::allocator_traits<Allocator>::reference reference;
typedef typename std::allocator_traits<Allocator>::const_reference const_reference;
typedef typename std::allocator_traits<Allocator>::size_type size_type; typedef typename std::allocator_traits<Allocator>::size_type size_type;
typedef typename std::allocator_traits<Allocator>::difference_type difference_type; typedef typename std::allocator_traits<Allocator>::difference_type difference_type;
#else #else
typedef typename Allocator::value_type value_type; typedef typename Allocator::value_type value_type;
typedef typename Allocator::pointer pointer; typedef typename Allocator::pointer pointer;
typedef typename Allocator::const_pointer const_pointer; typedef typename Allocator::const_pointer const_pointer;
typedef typename Allocator::reference reference;
typedef typename Allocator::const_reference const_reference;
typedef typename Allocator::size_type size_type; typedef typename Allocator::size_type size_type;
typedef typename Allocator::difference_type difference_type; typedef typename Allocator::difference_type difference_type;
#endif #endif
typedef value_type& reference;
typedef const value_type& const_reference;
typedef std::random_access_iterator_tag iterator_category; typedef std::random_access_iterator_tag iterator_category;
typedef vector_iterator< T, reference, pointer> iterator; typedef vector_iterator< T, reference, pointer> iterator;
typedef vector_iterator< T, const_reference, const_pointer> typedef vector_iterator< T, const_reference, const_pointer>