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.
Dijkstra's Example Simplified By Off-The-End Values: First Try
By keeping Dijkstra's strategy the same, but describing the ranges more consistently, the resulting program is easier to understand. - C/C++
A Classic Example That Off-The-End Iterators Can Simplify
Let's examine a programming problem that Edsger Dijkstra calls "the problem of the Dutch national flag." - C/C++
How To Use Reverse Iterators Without Getting Confused
This week we'll look at a concrete example of how to use reverse iterators. - C/C++
How C++ Reverse Iterators Represent Boundaries
Last week, we established that pointers can be used to represent boundaries. Let's continue by looking more closely at how these representations interact with reverse iterators. - C/C++
How To Represent Boundaries With Pointers
Let's continue last week's discussion about the relationship between boundaries and pointers. - C/C++
Representing Ranges With Element Pointers
Not every boundary has a corresponding element — after all, the sequence might not have any elements at all. - C/C++
How to Represent Ranges Symmetrically
We continue last week's discussion about how to reconcile the natural asymmetry in while
statements with the symmetry between the beginning and end of a range. -
C/C++
Off-The-End Pointers And While Statements
What is it about arrays that should make us treat the beginning of an array differently than the end when are talking about ranges of array elements? - C/C++
If Off-The-End Pointers Are Useful, Why Not Off-The-Beginning Pointers?
One important way in which programmers can make their lives easier is by generalizing, otherwise known as reducing the number of exceptional cases to consider. - C/C++
Still More Ado About Nothing: How Off-The-End Pointers Should Behave
The existence of off-the-end pointers raises additional questions. - C/C++