Skip to content

Commit 2490179

Browse files
committed
headers: Add typename in typedefs where missing
1 parent 70c4518 commit 2490179

File tree

10 files changed

+68
-68
lines changed

10 files changed

+68
-68
lines changed

headers/deque

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ public:
3535
typedef T* pointer;
3636
typedef const T* const_pointer;
3737
#elif CPPREFERENCE_STDVER <2011
38-
typedef Allocator::reference reference;
39-
typedef Allocator::const_reference const_reference;
40-
typedef Allocator::pointer pointer;
41-
typedef Allocator::const_pointer const_pointer;
38+
typedef typename Allocator::reference reference;
39+
typedef typename Allocator::const_reference const_reference;
40+
typedef typename Allocator::pointer pointer;
41+
typedef typename Allocator::const_pointer const_pointer;
4242
#else
4343
typedef value_type& reference;
4444
typedef const value_type& const_reference;
45-
typedef std::allocator_traits<Allocator>::pointer pointer;
46-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
45+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
46+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
4747
#endif
4848
typedef T* iterator; // actual type is unspecified
4949
typedef const T* const_iterator; // actual type is unspecified

headers/forward_list

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public:
3636
#else
3737
typedef value_type& reference;
3838
typedef const value_type& const_reference;
39-
typedef std::allocator_traits<Allocator>::pointer pointer;
40-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
39+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
40+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
4141
#endif
4242
typedef T* iterator; // actual type is unspecified
4343
typedef const T* const_iterator; // actual type is unspecified

headers/list

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ public:
3535
typedef T* pointer;
3636
typedef const T* const_pointer;
3737
#elif CPPREFERENCE_STDVER <2011
38-
typedef Allocator::reference reference;
39-
typedef Allocator::const_reference const_reference;
40-
typedef Allocator::pointer pointer;
41-
typedef Allocator::const_pointer const_pointer;
38+
typedef typename Allocator::reference reference;
39+
typedef typename Allocator::const_reference const_reference;
40+
typedef typename Allocator::pointer pointer;
41+
typedef typename Allocator::const_pointer const_pointer;
4242
#else
4343
typedef value_type& reference;
4444
typedef const value_type& const_reference;
45-
typedef std::allocator_traits<Allocator>::pointer pointer;
46-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
45+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
46+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
4747
#endif
4848
typedef T* iterator; // actual type is unspecified
4949
typedef const T* const_iterator; // actual type is unspecified

headers/map

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ public:
3939
typedef value_type* pointer;
4040
typedef const value_type* const_pointer;
4141
#elif CPPREFERENCE_STDVER <2011
42-
typedef Allocator::reference reference;
43-
typedef Allocator::const_reference const_reference;
44-
typedef Allocator::pointer pointer;
45-
typedef Allocator::const_pointer const_pointer;
42+
typedef typename Allocator::reference reference;
43+
typedef typename Allocator::const_reference const_reference;
44+
typedef typename Allocator::pointer pointer;
45+
typedef typename Allocator::const_pointer const_pointer;
4646
#else
4747
typedef value_type& reference;
4848
typedef const value_type& const_reference;
49-
typedef std::allocator_traits<Allocator>::pointer pointer;
50-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
49+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
50+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
5151
#endif
5252
typedef T* iterator; // actual type is unspecified
5353
typedef const T* const_iterator; // actual type is unspecified
@@ -296,15 +296,15 @@ public:
296296
typedef value_type* pointer;
297297
typedef const value_type* const_pointer;
298298
#elif CPPREFERENCE_STDVER <2011
299-
typedef Allocator::reference reference;
300-
typedef Allocator::const_reference const_reference;
301-
typedef Allocator::pointer pointer;
302-
typedef Allocator::const_pointer const_pointer;
299+
typedef typename Allocator::reference reference;
300+
typedef typename Allocator::const_reference const_reference;
301+
typedef typename Allocator::pointer pointer;
302+
typedef typename Allocator::const_pointer const_pointer;
303303
#else
304304
typedef value_type& reference;
305305
typedef const value_type& const_reference;
306-
typedef std::allocator_traits<Allocator>::pointer pointer;
307-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
306+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
307+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
308308
#endif
309309
typedef T* iterator; // actual type is unspecified
310310
typedef const T* const_iterator; // actual type is unspecified

headers/regex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ public:
181181
typedef BidirIt::value_type value_type;
182182
typedef ptrdiff_t difference_type;
183183
#else
184-
typedef std::iterator_traits<BidirIt>::value_type value_type;
185-
typedef std::iterator_traits<BidirIt>::difference_type difference_type;
184+
typedef typename std::iterator_traits<BidirIt>::value_type value_type;
185+
typedef typename std::iterator_traits<BidirIt>::difference_type difference_type;
186186
#endif
187187
bool matched;
188188

@@ -219,9 +219,9 @@ public:
219219
typedef const value_type& const_reference;
220220
typedef value_type* const_iterator; // actually impl-defined
221221
typedef const_iterator iterator;
222-
typedef std::iterator_traits<BidirIt>::difference_type difference_type;
223-
typedef std::allocator_traits<Alloc>::size_type size_type;
224-
typedef std::iterator_traits<BidirIt>::value_type char_type;
222+
typedef typename std::iterator_traits<BidirIt>::difference_type difference_type;
223+
typedef typename std::allocator_traits<Alloc>::size_type size_type;
224+
typedef typename std::iterator_traits<BidirIt>::value_type char_type;
225225
typedef std::basic_string<char_type> string_type;
226226

227227
explicit match_results(const Allocator& a = Allocator());

headers/set

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ public:
3737
typedef value_type* pointer;
3838
typedef const value_type* const_pointer;
3939
#elif CPPREFERENCE_STDVER <2011
40-
typedef Allocator::reference reference;
41-
typedef Allocator::const_reference const_reference;
42-
typedef Allocator::pointer pointer;
43-
typedef Allocator::const_pointer const_pointer;
40+
typedef typename Allocator::reference reference;
41+
typedef typename Allocator::const_reference const_reference;
42+
typedef typename Allocator::pointer pointer;
43+
typedef typename Allocator::const_pointer const_pointer;
4444
#else
4545
typedef value_type& reference;
4646
typedef const value_type& const_reference;
47-
typedef std::allocator_traits<Allocator>::pointer pointer;
48-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
47+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
48+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
4949
#endif
5050
typedef T* iterator; // actual type is unspecified
5151
typedef const T* const_iterator; // actual type is unspecified
@@ -262,15 +262,15 @@ public:
262262
typedef value_type* pointer;
263263
typedef const value_type* const_pointer;
264264
#elif CPPREFERENCE_STDVER <2011
265-
typedef Allocator::reference reference;
266-
typedef Allocator::const_reference const_reference;
267-
typedef Allocator::pointer pointer;
268-
typedef Allocator::const_pointer const_pointer;
265+
typedef typename Allocator::reference reference;
266+
typedef typename Allocator::const_reference const_reference;
267+
typedef typename Allocator::pointer pointer;
268+
typedef typename Allocator::const_pointer const_pointer;
269269
#else
270270
typedef value_type& reference;
271271
typedef const value_type& const_reference;
272-
typedef std::allocator_traits<Allocator>::pointer pointer;
273-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
272+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
273+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
274274
#endif
275275
typedef T* iterator; // actual type is unspecified
276276
typedef const T* const_iterator; // actual type is unspecified

headers/string

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public:
8787
#if CPPREFERENCE_SIMPLIFY_TYPEDEFS
8888
typedef CharT value_type;
8989
#else
90-
typedef Traits::char_type value_type;
90+
typedef typename Traits::char_type value_type;
9191
#endif
9292
typedef Allocator allocator_type;
9393
#if CPPREFERENCE_SIMPLIFY_TYPEDEFS
@@ -98,19 +98,19 @@ public:
9898
typedef T* pointer;
9999
typedef const T* const_pointer;
100100
#elif CPPREFERENCE_STDVER <2011
101-
typedef Allocator::size_type size_type;
102-
typedef Allocator::difference_type difference_type;
103-
typedef Allocator::reference reference;
104-
typedef Allocator::const_reference const_reference;
105-
typedef Allocator::pointer pointer;
106-
typedef Allocator::const_pointer const_pointer;
101+
typedef typename Allocator::size_type size_type;
102+
typedef typename Allocator::difference_type difference_type;
103+
typedef typename Allocator::reference reference;
104+
typedef typename Allocator::const_reference const_reference;
105+
typedef typename Allocator::pointer pointer;
106+
typedef typename Allocator::const_pointer const_pointer;
107107
#else
108-
typedef std::allocator_traits<Allocator>::size_type size_type;
109-
typedef std::allocator_traits<Allocator>::difference_type difference_type;
108+
typedef typename std::allocator_traits<Allocator>::size_type size_type;
109+
typedef typename std::allocator_traits<Allocator>::difference_type difference_type;
110110
typedef value_type& reference;
111111
typedef const value_type& const_reference;
112-
typedef std::allocator_traits<Allocator>::pointer pointer;
113-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
112+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
113+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
114114
#endif
115115
typedef T* iterator; // actual type is unspecified
116116
typedef const T* const_iterator; // actual type is unspecified

headers/unordered_map

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public:
4343
typedef value_type* pointer;
4444
typedef const value_type* const_pointer;
4545
#else
46-
typedef std::allocator_traits<Allocator>::pointer pointer;
47-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
46+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
47+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
4848
#endif
4949
typedef T* iterator; // actual type is unspecified
5050
typedef const T* const_iterator; // actual type is unspecified
@@ -253,8 +253,8 @@ public:
253253
typedef value_type* pointer;
254254
typedef const value_type* const_pointer;
255255
#else
256-
typedef std::allocator_traits<Allocator>::pointer pointer;
257-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
256+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
257+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
258258
#endif
259259
typedef T* iterator; // actual type is unspecified
260260
typedef const T* const_iterator; // actual type is unspecified

headers/unordered_set

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public:
4141
typedef value_type* pointer;
4242
typedef const value_type* const_pointer;
4343
#else
44-
typedef std::allocator_traits<Allocator>::pointer pointer;
45-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
44+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
45+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
4646
#endif
4747
typedef T* iterator; // actual type is unspecified
4848
typedef const T* const_iterator; // actual type is unspecified
@@ -230,8 +230,8 @@ public:
230230
typedef value_type* pointer;
231231
typedef const value_type* const_pointer;
232232
#else
233-
typedef std::allocator_traits<Allocator>::pointer pointer;
234-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
233+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
234+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
235235
#endif
236236
typedef T* iterator; // actual type is unspecified
237237
typedef const T* const_iterator; // actual type is unspecified

headers/vector

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ public:
3535
typedef T* pointer;
3636
typedef const T* const_pointer;
3737
#elif CPPREFERENCE_STDVER <2011
38-
typedef Allocator::reference reference;
39-
typedef Allocator::const_reference const_reference;
40-
typedef Allocator::pointer pointer;
41-
typedef Allocator::const_pointer const_pointer;
38+
typedef typename Allocator::reference reference;
39+
typedef typename Allocator::const_reference const_reference;
40+
typedef typename Allocator::pointer pointer;
41+
typedef typename Allocator::const_pointer const_pointer;
4242
#else
4343
typedef value_type& reference;
4444
typedef const value_type& const_reference;
45-
typedef std::allocator_traits<Allocator>::pointer pointer;
46-
typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
45+
typedef typename std::allocator_traits<Allocator>::pointer pointer;
46+
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
4747
#endif
4848
typedef T* iterator; // actual type is unspecified
4949
typedef const T* const_iterator; // actual type is unspecified

0 commit comments

Comments
 (0)