O'Reilly logo

Extended STL, Volume 1: Collections and Iterators by Matthew Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 27. String Tokenization

 How vain it is to sit down and write when you have not stood up to live. 
 --Henry David Thoreau
 Racing doesn’t get any easier; you just get faster. 
 --Greg Lemond

Introduction

By now you’re used to my writing style and may be expecting a sequence of expository steps describing the evolution of a collection component into a beautifully crafted class that handles all possible cases with aplomb. If so, you’re in for somewhat of a disappointment in this chapter. What you’ll actually get here is a story of how the effects of complexity, efficiency, flexibility, and several hundred refactoring steps conspire to yield a class that’s really flexible and very fast but that grossly violates Henney’s Hypothesis (Chapter 14 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required