C++ Urban Myths
- by Neil Butterworth
I'm starting to write an article on what I'm calling "C++ Urban Myths" - that is, ideas and conceptions about C++ that are common but have no actual roots in reality. Some that I've come up with so far are:
TR1 is part of standard C++
TR1 (technical Report #1) proposed a whole bunch of changes to C++. Unfortunately, it was never accepted.
It is faster to use iterators to access a vector than operator[]
Or vice versa. All tests I've carried out indicate the two are nearly identical in performance.
The C++ Standard contains something called the STL
It doesn't - neither "STL" nor "Standard Template Library" appear in the Standard.
I'm wondering if the SO C++ community can come up with any better ones? Ideally, they should be expressible in a single sentence, and not involve any code.
Edit: I guess I didn't make it clear enough that I was interested in myths believed by C++ developers, not misconceptions held by non-C++users. Oh well...