boost · medium
Boost: Peer-Reviewed Libraries & the Incubator for std
Boost is a large, community-maintained collection of over 160 portable, peer-reviewed C++ libraries that serves as the de-facto proving ground for modern C++ — features are battle-tested in Boost before being standardized. A great deal of the standard library originated there: shared_ptr/weak_ptr and thread were standardized in C++11; array, tuple, unordered containers, chrono and regex also trace back to Boost; and optional, variant, any and filesystem were adopted in C++17. Most Boost libraries are header-only, so you simply add the include path, though a handful (System, Filesystem before C++17, Thread, ProgramOptions, Serialization) ship as built components you must link; in practice you pull Boost in via vcpkg or Conan. For interviews the most important member by far is Boost.Asio, the portable asynchronous I/O and networking library that the remaining lessons in this topic cover.
Boost is 160+ peer-reviewed, mostly header-only C++ libraries and the incubator for std (shared_ptr/thread → C++11; optional/variant/any/filesystem → C++17). A few parts need linking (system, filesystem<C++17, thread, serialization). Its crown jewel is Boost.Asio for async networking.
The code
#include <boost/asio.hpp> // networking / async I/O (header-heavy)#include <boost/optional.hpp> // became std::optional (C++17)#include <boost/smart_ptr.hpp> // became std::shared_ptr (C++11)// Most of Boost is header-only: just add the include path.// A few need linking: system, filesystem(<C++17), thread, serialization.What this lesson walks through
- 01What Boost is
- 02The incubator for the standard library
- 03Header-only vs compiled; how to get it
Boost is a collection of 160+ portable, peer-reviewed C++ libraries maintained by the community. It's the de-facto proving ground for modern C++ idioms: high quality, heavily reviewed, and cross-platform. Many teams use Boost for capabilities not (yet) in the standard library — most famously Boost.Asio for networking.
See it animated — step by step, at your own pace
Unlock the full interactive walkthrough of Boost: Peer-Reviewed Libraries & the Incubator for std and 100+ animated C++ interview lessons.