Topic: Is hash_map part of the offical standard
Author: jcoffin@taeus.com (Jerry Coffin)
Date: 1999/12/11 Raw View
In article <82rj8s$drl@library2.airnews.net>, kkurt@ifsx.net says...
>
> 1.) Are hash_map, hash_multimap, hash_set, hash_mulitset part of the
> official stl standard?
TTBOMK, there IS no standard specifically for STL. The C++ standard
includes substantial portions of what originated as STL, but no
containers with the names above, and no containers that could easily
be implemented to meet the standards requirements using hash tables.
> 2.) Is stl non ISO and ANSI compliant(or whatever you call it)? Is stl truly
> a standard or only a draft standard?
I'm not sure exactly what you're trying to ask here. AFAIK, nobody
ever proposed that STL become an independent standard. It was
submitted to the C++ committee, and was used as a basis for much of
the C++ standard library.
--
Later,
Jerry.
The universe is a figment of its own imagination.
---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Steve Clamage <stephen.clamage@sun.com>
Date: 1999/12/11 Raw View
Kurt wrote:
>
> 1.) Are hash_map, hash_multimap, hash_set, hash_mulitset part of the
> official stl standard?
> 2.) Is stl non ISO and ANSI compliant(or whatever you call it)? Is stl truly
> a standard or only a draft standard?
The term "STL" is not used in the C++ standard. The term is partly
historical, coming originally from Hewlett-Packard.
The C++ Committee adopted the HP STL library into the C++ standard
library, making many detailed changes. There is no "STL" in standard
C++. There is only the standard library, which includes classes,
algorithms, and iterators similar to what was in the original STL,
among other things. The C++ standard was completed in November 1997,
and became an official ISO standard in July 1998. The ISO standard
was then adopted by ANSI as an official American standard.
Other people adapted or re-wrote the HP STL, providing similar libraries
different in detail from both the original and the C++ standard.
These libraries usually have "STL" in their names, to acknowledge
their source. They are not part of standard C++.
The standard C++ library does not contain any hash classes. There were
no hash classes in the original STL, and no usable proposal was
received by the C++ Committee until it was too late to include in
the current standard.
--
Steve Clamage, stephen.clamage@sun.com
---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Matt Austern <austern@sgi.com>
Date: 1999/12/11 Raw View
"Kurt" <kkurt@ifsx.net> writes:
> 1.) Are hash_map, hash_multimap, hash_set, hash_mulitset part of the
> official stl standard?
They are not part of the C++ standard, ISO/IEC 14882. Many library
implementations provide them as an extension.
> 2.) Is stl non ISO and ANSI compliant(or whatever you call it)? Is stl truly
> a standard or only a draft standard?
Depends on what you mean by "stl". The C++ standard, which is an
official ISO standard, does define a standard library. When I talk
about the STL, what I typically mean is the part of the C++ library
that's defined by clauses 20, 21, and 23-25 of the C++ standard.
If you mean a particular C++ compiler's library implementation, then
it may be standard conforming to a greater or lesser degree.
---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: "Kurt" <kkurt@ifsx.net>
Date: 1999/12/10 Raw View
1.) Are hash_map, hash_multimap, hash_set, hash_mulitset part of the
official stl standard?
2.) Is stl non ISO and ANSI compliant(or whatever you call it)? Is stl truly
a standard or only a draft standard?
regards,
Kurt
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Darin Adler <darin@bentspoon.com>
Date: 1999/12/10 Raw View
Kurt <kkurt@ifsx.net> wrote:
> 1.) Are hash_map, hash_multimap, hash_set, hash_mulitset part of the
> official stl standard?
These are not part of the ISO C++ Standard. They probably would be, except
for timing. They weren't yet in the STL at the time it was incorporated into
the library part of the standard.
> 2.) Is stl non ISO and ANSI compliant(or whatever you call it)? Is stl truly
> a standard or only a draft standard?
The ISO C++ Standard has been approved. It's no longer a draft.
A lot of what people call STL is part of the ISO C++ standard. The SGI
implementation of STL (probably the most definitive, and the primary
successor to the original STL) includes a number things that are not in the
standard, and is also non-standard in some subtle ways. Other
implementations of C++ include library implementations that have everything
required by the standard; in some cases they are more compliant with what
the standard describes than the SGI version. These don't necessarily have
the extensions that are present in the SGI STL.
-- Darin
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html ]