|
||||||
Part One: FoundationsThis collection of small chapters provides grounding for the material discussed in Parts II and III. It begins with a brief recap of the main features of the STL, followed by a discussion of concepts and principles pertinent to STL extension, including the introduction of a new concept, the element reference category. The next few chapters consider foundational concepts, mechanisms, paradigms, and principles: conformance, constraints, contracts, DRY SPOT, RAII, and shims. The remaining chapters cover template tools and techniques, including traits and inferred interface adaptation, and several essential components used in the implementations described in Parts II and III. Part Two: Collections This represents the bulk of the book. Each chapter covers one or more related real-world collection and its adaptation into an STL extension collection component along with suitable iterator types. The subject matter tracks adaptations of subjects as diverse as file system enumeration, COM enumerators, non-STL containers, Scatter/Gather I/O, and even collections whose elements are subject to external change. The issues covered include concepts of iterator category selection and element reference categories, state sharing, mutability, and external iterator invalidation. Part Three: Iterators While the material in Part II includes the definition of iterator types associated with collections, Part III is devoted to stand-alone iterator types. The subjects covered range from custom output iterator types, including a discussion of simple extension of the functionality of std:: ostream_iterator, to sophisticated iterator adaptors that can filter and transform the types and/or values of the underlying ranges to which they’re applied. Download free ebooks on .net:Extended STL Collections and Iterators(Volume 1)
|
| More free ebooks | |
Free programing ebooks
Part One: Foundations