This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

allocator_type typedef/typename ?



Shouldn't an STL container  Cntr  have  Cntr<...>::allocator_type
defined as a typename.

For example SGI's deque has:
   // {
   template <class T, class Alloc = alloc, size_t BufSiz = 0> 
   class deque {
   ...
     typedef simple_alloc<pointer, Alloc> map_allocator;
     typedef simple_alloc<value_type, Alloc> data_allocator;
   ...
   };
   // }
But no  'allocator_type'  definition as suggested by
   http://www.dinkumware.com/htm_cpl/deque.html#deque

-- yotam

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]