Jump to content

Talk:C++ Standard Library

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by AoV2 (talk | contribs) at 10:49, 16 March 2010. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconComputing Start‑class Low‑importance
WikiProject iconThis article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
StartThis article has been rated as Start-class on Wikipedia's content assessment scale.
LowThis article has been rated as Low-importance on the project's importance scale.
WikiProject iconC/C++ Unassessed Top‑importance
WikiProject iconThis article is within the scope of WikiProject C/C++, a collaborative effort to improve the coverage of C and C++ topics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
???This article has not yet received a rating on Wikipedia's content assessment scale.
TopThis article has been rated as Top-importance on the importance scale.

TR1

This article should talk about the next generation of the C++ standard library - i.e. TR1. Anyone up for it? Pcb21 Pete 22:31, 10 December 2005 (UTC)[reply]

I'm going to have a go at it in the near future if no-one else steps forward. I also think this whole page needs a ground-up rewrite, just listing headers isn't helping anyone. Mrjeff 11:05, 27 February 2006 (UTC)[reply]

Wrong name?

Would not most of what is mentioned here be classed as a part of the STL? While the STL is a part of the standard, it is still called the C++ Standard Template Library OwenS | T | C | 15:38, 18 June 2006 (UTC)[reply]

From the article: The algorithms and containers in the C++ Standard library are based on the STL and therefore the two terms are often used interchangeably. --ozzmosis 15:57, 18 June 2006 (UTC)[reply]

Depreciated libraries

It might be mentioned that some libraries have fallen out of standard use, especially the C ones when writing C++. I know the g++ compiler waves the warning flags if it sees an old C library in there, especially for something like stdio.h, but it's allowed. I'm a novice programmer, though, so I may very well have my facts wrong. 129.61.46.16 12:29, 23 June 2006 (UTC)[reply]

I can't reproduce this using g++ myself, could you provide an example? What is depricated is pre-standard library C++ header files, but I don't think any C ones are. Mrjeff 18:52, 23 June 2006 (UTC)[reply]
That's my mistake, then. I must have been thinking of the warnings that g++ produces when you try to put a .h at the end of some of the headers. If you put a .h at the end of iostream, the "hello world" program will work after a compiler warning, but if you remove the .h, you have to mention that you're using the standard namespace or g++ won't recognize cout and endl. The strange behavior of c++ compilers (or maybe the specific g++ release I'm using) belongs elsewhere, though. Just a note, I'm posting this from a different computer, so expect a different IP... yeah, I know, I should get a Wikipedia account. Until then, you'll just have to trust my word that I'm the same person. 68.228.27.186 00:19, 30 June 2006 (UTC)[reply]
Using <stdlib.h> is deprecated; use <cstdlib>. Including <stdlib.h> effective does the same thing as #include <cstdlib> and using namespace std; together. In many cases, especially in header files, this is a very bad idea! Figs 21:26, 4 March 2007 (UTC)[reply]

Headers

I don't think separate articles for each of the standard headers is appropriate content for Wikipedia. Wikipedia is not a C++ reference manual (and I'm saying that as a full-time C++ programmer in my day job). This issue has come up here and here. I will start merging content from some of these pages to the expanded section in this article. Jfire (talk) 03:15, 14 January 2008 (UTC)[reply]

What does "std" stand for?

I havn't found an answer just what the three letters "std" of the standard C(++) library stand for. Anyone know? Seems like a good article should say so. :-)

Regards, Mark —Preceding unsigned comment added by 80.238.205.47 (talk) 19:15, 22 August 2008 (UTC)[reply]

I have heard it is an abbreviation for Standard Template Definition, but that was in a programming class a few years ago; I have no source of evidence that is what it means and google the phrase in quotes returned no results so I am not confident enough that is the case to edit the article. —Preceding unsigned comment added by 68.91.150.76 (talk) 05:58, 2 October 2008 (UTC)[reply]

I′m almost certain it stands only for standard, cf. “cstdlib” (a.k.a. “stdlib.h”) which predates the use of templates. One should not confuse this with “stl” which does indeed pertain to templates. ―AoV² 10:49, 16 March 2010 (UTC)[reply]

Typo?

In the sentence "In C++, the Standard Library is a collection of classes and functions, which are written in the core language. The Standard Library provides several generic containers, functions to utilise and manipulate these containers, function objects, generic strings and streams (including interactive and file " the "to utilise" looks to be a typo, isn't it?--88.149.155.35 (talk) 09:23, 9 April 2009 (UTC)[reply]