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.
Object Swapping, Part 6: Exception Safety
Swapping has an important role to play in making operations exception safe. - C/C++
Object Swapping, Part 5: A Fine Point About Overloading
Last week, a sharp-eyed reader pointed out a subtle pitfall in the code that I presented. - C/C++
Object Swapping Part 4: How Class Operations Relate
The fundamental operations that a class offers to its users are construction, destruction, copying, and assignment. - C/C++
Object Swapping, Part 3: Swapping and Moving
I would like to continue this series by discussing the notion of moving, rather than copying, values. - C/C++
Object Swapping, Part 2: Algorithms Can Often Swap Instead of Copy
Swapping is often faster than assignment — a fact that often allows algorithms that swap to be dramatically faster than they would be if they used assignment. Here's why. - C/C++
Object Swapping Part 1: Its Surprising Importance
I am beginning to believe that swapping is as fundamental an operation as copying, and that it may even be more fundamental than assignment. - C/C++
The Case Against int, Part 3: The Advantages and Perils of Unsigned Arithmetic
C++ defines an unsigned integer type, size_t
, that is well-suited to storing array indices, or otherwise counting items that can fit in the computer's memory. -
C/C++
The Case Against int, Part 2: Why Signed Integers?
Unsigned integer arithmetic is often more useful than signed. - C/C++
The Case Against int, Part 1
I think it's time to warn about integer arithmetic — specifically about the int
type. -
C/C++
Optimizations Can Have Side Effects
When you find ways to make your code faster, those optimizations can cause trouble for people who use your code. - C/C++