Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Data Structures and Algorithms with the C++ STL

You're reading from   Data Structures and Algorithms with the C++ STL A guide for modern C++ practitioners

Arrow left icon
Product type Paperback
Published in Feb 2024
Publisher Packt
ISBN-13 9781835468555
Length 458 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
John Farrier John Farrier
Author Profile Icon John Farrier
John Farrier
Arrow right icon
View More author details
Toc

Table of Contents (30) Chapters Close

Preface 1. Part 1: Mastering std::vector FREE CHAPTER
2. Chapter 1: The Basics of std::vector 3. Chapter 2: Mastering Iterators with std::vector 4. Chapter 3: Mastering Memory and Allocators with std::vector 5. Chapter 4: Mastering Algorithms with std::vector 6. Chapter 5: Making a Case for std::vector 7. Part 2: Understanding STL Data Structures
8. Chapter 6: Advanced Sequence Container Usage 9. Chapter 7: Advanced Ordered Associative Container Usage 10. Chapter 8: Advanced Unordered Associative Container Usage 11. Chapter 9: Advanced Container Adaptor Usage 12. Chapter 10: Advanced Container View Usage 13. Part 3: Mastering STL Algorithms
14. Chapter 11: Fundamental Algorithms and Searching 15. Chapter 12: Manipulation and Transformation 16. Chapter 13: Numeric and Range -Based Operations 17. Chapter 14: Permutations, Partitions, and Heaps 18. Chapter 15: STL with Ranges 19. Part 4: Creating STL-Compatible Types and Algorithms
20. Chapter 16: Creating STL-Types Containers 21. Chapter 17: Creating STL -Compatible Algorithms 22. Chapter 18: Type Traits and Policies 23. Part 5: STL Data Structures and Algorithms: Under the Hood
24. Chapter 19: Exception Safety 25. Chapter 20: Thread Safety and Concurrency with the STL 26. Chapter 21: STL Interaction with Concepts and Coroutines 27. Chapter 22: Parallel Algorithms with the STL 28. Index 29. Other Books You May Enjoy

What this book covers

Chapter 1, The Basics of std::vector, introduces std::vector, comparing it with C-style arrays, and demonstrates its declaration, initialization, and element manipulation.

Chapter 2, Mastering Iterators with std::vector, explores the different types of iterators in the STL and their application within std::vector contexts, including custom iterator creation.

Chapter 3, Mastering Memory and Allocators with std::vector, discusses vector capacity versus size, memory optimization techniques, and the design of custom allocators for enhanced performance.

Chapter 4, Mastering Algorithms with std::vector, delves into algorithmic operations on vectors, such as sorting and searching, and the importance of understanding iterator invalidation.

Chapter 5, Making the Case for std::vector, examines the performance aspects, practical applications, and versatility of std::vector as a go-to STL container.

Chapter 6, Advanced Sequence Container Usage, analyzes advanced usage scenarios and best practices for sequence containers like std::array, std::deque, and others.

Chapter 7, Advanced Ordered Associative Container Usage, explores the intricacies of ordered associative containers such as std::set and std::map and their unique performance considerations.

Chapter 8, Advanced Unordered Associative Container Usage, investigates unordered associative containers, highlighting their internal workings and use cases.

Chapter 9, Advanced Container Adaptor Usage, focuses on container adaptors like std::stack and std::queue, discussing their implementation and when to use them effectively.

Chapter 10, Advanced Container View Usage, introduces container views such as std::span and std::mdspan, providing insights into their utility and performance benefits.

Chapter 11, Fundamental Algorithms and Searching, Covers the foundational algorithms for sorting and searching within STL and their practical applications.

Chapter 12, Manipulation and Transformation, Details the techniques for transforming data within STL containers, including the nuances of copying, moving, and removing elements.

Chapter 13, Numeric and Range-Based Operations, Explores numeric operations and their applications on ranges, demonstrating how they can optimize algorithmic complexity.

Chapter 14, Permutations, Partitions, and Heaps, Provides an in-depth look at data organization algorithms, such as partitioning and heap operations, within the STL.

Chapter 15, Modern STL with Ranges, Discusses the modern approach to STL with ranges, enhancing the composability and efficiency of algorithms.

Chapter 16, Creating STL-Types Containers, Guides through the creation of custom containers that are compatible with STL algorithms and the essential components required for full integration.

Chapter 17, Creating STL-Compatible Algorithms, Details the development of custom algorithms that work seamlessly with STL containers and adhere to STL principles.

Chapter 18, Type Traits and Policies, Delves into the advanced topics of type traits and policies, key in crafting adaptable and efficient template code.

Chapter 19, Exception Safety, Examines the levels of exception safety guaranteed by STL and how to write robust STL-compatible code with noexcept.

Chapter 20, Thread Safety and Concurrency with the STL, Discusses the concurrency and thread safety features of STL containers, the prevention of race conditions, and best practices for multithreaded programming.

Chapter 21, STL Interaction with Concepts and Coroutines, Explores the interaction between STL and the latest C++ features like concepts and coroutines, showcasing their synergy.

Chapter 22, Parallel Algorithms with the STL, Introduces execution policies for parallel algorithms in STL, the role of constexpr, and the considerations for performance and efficiency.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime