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 40. String Object Concatenation

 

And above all things, never think that you’re not good enough yourself. A man should never think that. My belief is that in life people will take you at your own reckoning.

 
 --Isaac Asimov
 

Luck favors the prepared!

 
 --Edna Mole

Introduction

In several of my projects I have had occasion to tokenize out string fragments from composite strings and then package them up again in a different form. We saw in Chapter 27 how tokenization can be effected easily and efficiently. Using the component described here, the tokens can be just as easily packaged up again.

Whereas we looked at how to write an output iterator for C-style string concatenation in the previous chapter, now we’re going to look at the more object-oriented ...

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