site Search Results
Results for: Andrew Koenig
Order the NEW
Discounted Dr. Dobb's Developer Library DVD 6
Purchase the fully searchable DVD for $59.95 - a 60% discount! Features
21 years of Dr. Dobb's Journal, 15 years of Sys Admin
magazine, 14+ years of C/C++ Users Journal, 1 year worth of Dr.
Dobb's Digest, podcasts, videos and more! Order Now.
When Is It Safe to Move an Object Instead of Copying It?
How the compiler can figure out during compilation when to move objects instead of copying them. - C/C++
Moving Is Not Copying
Like many subtle ideas, the idea of moving data in C++ is built on a simple concept. - C/C++
Copying Container Elements From The C++ Library: It's Trickier Than It Looks
We must generally assume that adding elements to a vector will invalidate every reference, pointer, or iterator that refers to a vector element. - C/C++
The Hazards of Remembering Positions in Vectors
Don't remember pointers, references, or iterators to vector elements until you're done putting new elements in the vector. - C/C++
Aliasing Is Particularly Troublesome With Vector Elements
I would like to continue our discussion with a particularly nasty case in which the result is not well defined. - C/C++
Some Subtleties of Aliasing
Aliasing can cause paradoxical behavior. - C/C++
Sometimes, Making a Program Clearer Makes It Faster
We can "optimize" our code by removing requests for operations that our data structures do not really need to support. - C/C++
Some Optimizations Are No-Brainers
Kernighan's rule for optimizations (Don't do it) is good advice. But as with most rules, there are exceptions. - C/C++
Sometimes Optimizations Cancel Each Other
Two rights can make a wrong in the software-design world. - C/C++
Optimizing a Program Means Making It Run Faster, Right?
People often use optimization to mean changing a program in ways that they think will make it run faster, but that casual definition is far from complete. - C/C++