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.
Moving Data and Address Arithmetic
If a data structure uses address arithmetic to determine the location of its data, then from time to time programs will almost surely find it necessary to put data at a particular place in memory. - C/C++
An Important Move Optimization Is Nearly Invisible
One of the biggest differences between copying and moving happens in code that we don't write. - C/C++
Some Optimizations Are More Important Than Others
Whenever a human is waiting for a computer to do needless work, it is not just the computer's time that is being wasted. - C/C++
Why Would You Ever Pass a Container By Value?
An important part of teaching is figuring out how to avoid drowning students in detail. - C/C++
Is Moving Objects Worth the Hassle?
This week, I'd like to take a step back and discuss why moving instead of copying is worth doing in the first place. - C/C++
Sometimes You Must Violate an Abstraction to Maintain It
There are instances where code tells a lie in the service of a greater truth. - C/C++
How the C++ Compiler Decides to Move Objects
After reading this post, you should be able to figure out what std::move
does, although not necessarily how it does it. -
C/C++
Moving an Object Does Not Destroy The Original
What moving an object actually does. - C/C++
Moving and Rvalue References
The C++ type system helps the compiler figure out whether to move or copy an object. How does it do it? - C/C++
More Thoughts About Moving Objects Safely
Moving objects instead of copying them is a tricky notion to explain — and perhaps trickier than I realized. - C/C++