Book description
Solve practical programming problems using powerful, portable, and expressive libraries from Boost
In Detail
Filled with dozens of working code examples that illustrate the use of over 40 popular Boost libraries, this book takes you on a tour of Boost, helping you to independently build the libraries from source and use them in your own code.
The first half of the book focuses on basic programming interfaces including generic containers and algorithms, strings, resource management, exception safety, and a miscellany of programming utilities that make everyday programming chores easy. Following a short interlude that introduces template metaprogramming and functional programming, the later chapters are devoted to systems programming interfaces, focusing on directory handling, I/O, concurrency, and network programming
What You Will Learn
- Write efficient and maintainable code using expressive interfaces from Boost libraries
- Leverage a variety of flexible, practical, and highly efficient containers and algorithms beyond STL
- Solve common programming problems by applying a wide array of utility libraries
- Design and write portable multithreaded code that is easy to read and maintain
- Craft highly scalable and efficient TCP and UDP servers
- Build and deploy Boost libraries across a variety of popular platforms
- Use C++11 functionality and emulate C++11 language features in C++03 code
Table of contents
-
Learning Boost C++ Libraries
- Table of Contents
- Learning Boost C++ Libraries
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Introducing Boost
- How it all started
- What is Boost?
-
Getting started with Boost libraries
- Necessary software
- Obtaining and building Boost libraries
- Using Boost libraries in your projects
- Building the code listings in this book
- Self-test questions
- Summary
- 2. The First Brush with Boost's Utilities
-
3. Memory Management and Exception Safety
- Dynamic memory allocation and exception safety
- Smart pointers
- Self-test questions
- Summary
- References
- 4. Working with Strings
- 5. Effective Data Structures beyond STL
- 6. Bimap and Multi-index Containers
- 7. Higher Order and Compile-time Programming
- 8. Date and Time Libraries
- 9. Files, Directories, and IOStreams
-
10. Concurrency with Boost
- Creating concurrent tasks with Boost Thread
- Managing shared data
- Boost Coroutine
- Self-test questions
- Summary
- References
-
11. Network Programming Using Boost Asio
- Task execution with Asio
- Network I/O using Asio
- Self-test questions
- Summary
- References
- A. C++11 Language Features Emulation
- Index
Product information
- Title: Learning Boost C++ Libraries
- Author(s):
- Release date: July 2015
- Publisher(s): Packt Publishing
- ISBN: 9781783551217
You might also like
book
Boost C++ Application Development Cookbook - Second Edition
Learn to build applications faster and better by leveraging the real power of Boost and C++ …
book
Beyond the C++ Standard Library: An Introduction to Boost
Introducing the Boost libraries: the next breakthrough in C++ programming Boost takes you far beyond the …
book
Practical C++ Metaprogramming
To say that C++ programmers embrace metaprogramming is a real stretch. Outright rejection is probably more …
book
C++20 for Lazy Programmers: Quick, Easy, and Fun C++ for Beginners
Ready to learn programming with less effort and more fun? Then do it the lazy way! …