user963241
user963241

Reputation: 7038

Customizing STL iterator class

which concept in c++ teaches you to extend and write your own iterator class? I know a little about writing templates.

Upvotes: 2

Views: 336

Answers (2)

js.
js.

Reputation: 1869

Thinking in C++ by Bruce Eckel has a good explanation.

Upvotes: 1

James McNellis
James McNellis

Reputation: 354979

The SGI Standard Template Library (STL) documentation explains all of the iterator concepts and their relationships.

How you take those concepts and use them to implement an iterator for your own container depends entirely on what kind of container it is and what you want to do with it.

Upvotes: 1

Related Questions