This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
allocator_type typedef/typename ?
- To: stl at sgi dot com
- Subject: allocator_type typedef/typename ?
- From: Yotam Medini <ymedini at iil dot intel dot com>
- Date: Sun, 12 Dec 1999 13:16:20 +0200
- CC: genstl at graphics dot stanford dot edu, libstdc++ at sourceware dot cygnus dot com
- Reply-to: ymedini at iil dot intel dot com
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