Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
Learning Boost C++

You're reading from   Learning Boost C++ Solve practical programming problems using powerful, portable, and expressive libraries from Boost

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781783551217
Length 558 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Arindam Mukherjee Arindam Mukherjee
Author Profile Icon Arindam Mukherjee
Arindam Mukherjee
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Introducing Boost FREE CHAPTER 2. The First Brush with Boost's Utilities 3. Memory Management and Exception Safety 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 11. Network Programming Using Boost Asio A. C++11 Language Features Emulation Index

What is Boost?

Boost is a collection of free, peer-reviewed, portable, open source libraries in C++. Over the last decade and a half, there have been, as of this writing, 57 releases of the Boost libraries. In this span, Boost has released libraries of compelling usefulness that promote correct, portable, efficient, and readable C++ code. A number of prominent Standards Committee members are also the most active participants in Boost and subsequent directions of C++ standardization have been heavily influenced by the work done at Boost. Boost has provided the Standards Committee with the laboratory they need to perfect their ideas for the best new features that C++ should have. Several Boost libraries were included in the Technical Report 1 of the C++ Standards Committee, which considerably enhanced the functionality defined in the C++ 2003 revised standard; these included both language and library features. Most of these libraries made it to the C++11 Standard published in 2011. A couple more library features that originated in Boost have been added to the latest revision of the C++ Standard known as C++14 (published in 2014).

Over the years, Boost has added libraries for string and text processing, including regular expression handling, generic containers compatible with the Standard Library, smart pointers for efficient exception-safe memory management, concurrent programming, network programming, interprocess communication, filesystem handling, template metaprogramming, and many others. The following table lists some of the prominent Boost libraries grouped by category. This is by no means exhaustive:

Category

Libraries

Memory management

Smart Ptr, Align, Pool

Data structures

Container, Array, Multi-Index, Bimap, Pointer Container, Optional, Variant, Any, Tuple, Assign

Algorithms

Algorithm, Range

String and text

Conversion, String Algo, Regex, Tokenizer, Spirit, Xpressive

Systems programming

System, Filesystem, Chrono, Date Time, Thread, Asio, Interprocess

I/O

IOStreams, Locale, Serialization, Format

Higher-order programming

Function, Bind, Phoenix, Signals2

Generic programming

Enable If, Type Traits, MPL, Fusion, Proto

Language features emulation

Foreach, Move, Exception, Parameter

Correctness and testing

Test, Static Assert

Miscellaneous

Utility, Log, Uuid, Program Options, CRC

Boost libraries have found varied use in the industry because of some very high-performance libraries (such as Boost.Asio and Boost.Intrusive), and because of a very permissive and uncomplicated Boost license, which allows source redistribution, distribution of derivative work, and distribution in a binary form for noncommercial as well as commercial purposes with minimal constraints. In the next section, we will set up a development environment that enables us to use any Boost library in our C++ code using consistent conventions. This should serve us well for the rest of the book.

You have been reading a chapter from
Learning Boost C++
Published in: Jul 2015
Publisher:
ISBN-13: 9781783551217
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 $19.99/month. Cancel anytime
Banner background image