Topic: change to vector & list??


Author: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson)
Date: 1996/07/24
Raw View
Brian Boyd <75401.2777@CompuServe.COM> writes:

>MS C++ 4.2 now has support for the standard library.  To my
>amazement, however, vector and list now have a spec of
>template <class T, class A> instead of template <class T>, where A
>represents an allocator. Has the spec changed or is MS playing
>God???

The spec has changed.

--
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: Matt Austern <austern@isolde.mti.sgi.com>
Date: 1996/07/24
Raw View
fjh@mundook.cs.mu.OZ.AU (Fergus Henderson) writes:


> Brian Boyd <75401.2777@CompuServe.COM> writes:
>
> >MS C++ 4.2 now has support for the standard library.  To my
> >amazement, however, vector and list now have a spec of
> >template <class T, class A> instead of template <class T>, where A
> >represents an allocator. Has the spec changed or is MS playing
> >God???
>
> The spec has changed.

It's true that the spec has changed, but in fact the standard has
always said that vectors and lists are parameterized by allocators.
You can see this even in the original Stepanov and Lee STL document.

The original STL code didn't have an allocator as a template
parameter, but that was just a workaround for specific compiler
limitations.  (Specifically, it was a workaround for the lack of
default template paramters.)



[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: Brian Boyd <75401.2777@CompuServe.COM>
Date: 1996/07/24
Raw View
MS C++ 4.2 now has support for the standard library.  To my
amazement, however, vector and list now have a spec of
template <class T, class A> instead of template <class T>, where A
represents an allocator. Has the spec changed or is MS playing
God???

Where can I get the most recent changes to the Standard
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]