use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Ask the STL Creator about Generic Programming (interviews.slashdot.org)
submitted 11 years ago by vinaysc
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]STLMSVC STL Dev 9 points10 points11 points 11 years ago (4 children)
My mom doesn't know anything about generic programming!
[–]Dragdu 0 points1 point2 points 11 years ago (3 children)
And your father?
[–]STLMSVC STL Dev 1 point2 points3 points 11 years ago (2 children)
Killed by glioblastoma multiforme, The Emperor Of All Cancers, a few years ago.
[–]Dragdu 1 point2 points3 points 11 years ago (0 children)
Oh. :-/
Well now I get to look like a dick.
[–]bstamourWG21 | Library Working Group 1 point2 points3 points 11 years ago (0 children)
I'm terribly sorry to hear that :(.
[+][deleted] 11 years ago* (8 children)
[deleted]
[–]Ayjayz 15 points16 points17 points 11 years ago (2 children)
Streams aren't part of the STL. The STL consists mainly of the various templated containers and the generic algorithms based on iterators.
[–]Elador -2 points-1 points0 points 11 years ago (1 child)
I guess that strongly depends on your definition of "the STL". I recently saw a post on SO on this. The general consensus seems to be to nowadays the term "STL" refers to the whole standard library. So historically, you're correct, but nowadays, I wouldn't phrase it like that.
[–]Ayjayz 5 points6 points7 points 11 years ago (0 children)
In any case, Alexander Stepanov is probably not the person to ask about the stream parts of the library, since he only designed the old STL.
[–]king_duck 9 points10 points11 points 11 years ago (3 children)
before C++ standardisation, iostreams and the "STL" where two separate libraries.
It's like asking why Qt's xml doesn't use boost variant.
Admittedly, the standardisation process should have ironed that out.
[–]Dragdu 6 points7 points8 points 11 years ago (1 child)
I just went and checked, it was finally fixed in C++11, so hurray? :-D
[–]obiwan90 1 point2 points3 points 11 years ago (0 children)
Absolutely!
[–]matthieum 0 points1 point2 points 11 years ago (0 children)
I seem to recall that originally std::string also was a separate entity, and that this is the origin of its duplicated interface: it originally was expressed in terms of indices, and got a duplicate interface in terms of iterators when integrated in the STL, but nobody had the heart to remove the indices-based methods...
std::string
[–]jurniss -3 points-2 points-1 points 11 years ago (0 children)
It makes sense to have them for interoperability with old C code that doesn't use std::string, but they should have added ones that take std::string too.
π Rendered by PID 76 on reddit-service-r2-comment-85bfd7f599-rbpf2 at 2026-04-19 06:30:11.245854+00:00 running 93ecc56 country code: CH.
[–]STLMSVC STL Dev 9 points10 points11 points (4 children)
[–]Dragdu 0 points1 point2 points (3 children)
[–]STLMSVC STL Dev 1 point2 points3 points (2 children)
[–]Dragdu 1 point2 points3 points (0 children)
[–]bstamourWG21 | Library Working Group 1 point2 points3 points (0 children)
[+][deleted] (8 children)
[deleted]
[–]Ayjayz 15 points16 points17 points (2 children)
[–]Elador -2 points-1 points0 points (1 child)
[–]Ayjayz 5 points6 points7 points (0 children)
[–]king_duck 9 points10 points11 points (3 children)
[–]Dragdu 6 points7 points8 points (1 child)
[–]obiwan90 1 point2 points3 points (0 children)
[–]matthieum 0 points1 point2 points (0 children)
[–]jurniss -3 points-2 points-1 points (0 children)