Topic: STL, the missing parts
Author: apm35@student.open.ac.uk
Date: Wed, 25 Jan 2006 11:49:35 CST Raw View
===================================== MODERATOR'S COMMENT:
This discussion is heading off into programming techniques.
Let's try to keep C++ standardization in the subject matter.
===================================== END OF MODERATOR'S COMMENT
Lance Diduck wrote:
> The best place to look is http://www.stepanovpapers.com/
>
> As an app programmer, I have gotten to the point where I use the STL
> widely, but rarely use the library containers in production code.
Hmm. Why not, I wonder? What do you use instead? If you wanted a
collection of objects that were to be indexed frequently and not
re-ordered neither would they have stuff inserted into the middle or
beginning would you avoid using a vector?
I understand the dangers of using STL containers in pubic interfaces
but surely there is nothing wrong in using them in implementation!
Regards,
Andrew Marlow
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: "Lance Diduck" <lancediduck@nyc.rr.com>
Date: Sun, 15 Jan 2006 18:09:09 CST Raw View
The best place to look is http://www.stepanovpapers.com/
"two-thirds" is perhaps an over estimate. It is interesting to note
that the earliest C++ proposals I could find
http://www.hpl.hp.com/techreports/92/HPL-92-65.html do not mention
containers at all -- I think the most revolutionary thing about the STL
is that even though it was adopted to fit the need for a standard
containers library, it is not a containers library. A few containers
were tacked on near the end of standardization effort. It is primarily
a library for how to build containers. (and other things).
This probably explains why even today you can find die hards who
believe the entire STL is "logically flawed" because they dont like
something about the containers --esp a particular implementation of the
containers.
As an app programmer, I have gotten to the point where I use the STL
widely, but rarely use the library containers in production code.
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: "adishavit" <adishavit@gmail.com>
Date: Wed, 11 Jan 2006 08:43:33 CST Raw View
Hi,
In this
(http://www.informit.com/content/images/art_stroustrup_2005/elementLinks/DnE2005.pdf)
recent article, Stroustrup writes:
"...but the size of the STL emerged as [a] major obstacle. Finally, at
Alex's urging, I took a pen and literally crossed out something like
two thirds of all the text. [...] It was a horrendous exercise. Alex
later claimed that it broke his heart. However, what emerged from that
slashing is what is now known as the STL.."
I was wondering, what those missing two-thirds (!) were and if they are
available somewhere?
Thanks,
Adi
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]