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
C++ Reactive Programming
Learn how to implement the reactive programming paradigm with C++ and build asynchronous and concurrent applications …
book
Boost.Asio C++ Network Programming Cookbook
Over 25 hands-on recipes to create robust and highly-efficient cross-platform distributed applications with the Boost.Asio libraryAbout …
book
Boost.Asio C++ Network Programming - Second Edition
Learn effective C++ network programming with Boost.Asio and become a proficient C++ network programmer About This …