Find a battle-tested library for the problem you're solving right now.

Algorithms

  • Algorithm

    A collection of useful generic algorithms.

    Algorithms C++ 03
    C++ 03
  • Foreach

    In C++, writing a loop that iterates over a sequence is tedious. We can either use iterators, which requires a considerable amount of boiler-plate, or we can use the std::for_each() algorithm and move our loop body into a predicate, which requires no less boiler-plate and forces us to move our logic far from where it will be used. In contrast, some other languages, like Perl, provide a dedicated "foreach" construct that automates this process. BOOST_FOREACH is just such a construct for C++. It iterates over sequences for us, freeing us from having to deal directly with iterators or write predicates.

    Unknown
  • Geometry

    The Boost.Geometry library provides geometric algorithms, primitives and spatial index.

    C++ 14
  • GIL

    (C++14) Generic Image Library

    C++ 14
  • Graph

    The BGL graph interface and graph components are generic, in the same sense as the Standard Template Library (STL).

    C++ 14
  • GraphParallel

    The PBGL graph interface and graph components are generic, in the same sense as the Standard Template Library (STL).

    C++ 03
  • Histogram

    Fast multi-dimensional histogram with convenient interface for C++14

    C++ 14
  • Min-Max

    Standard library extensions for simultaneous min/max and min/max element computations.

    Algorithms C++ 03
    C++ 03
  • Polygon

    Voronoi diagram construction and booleans/clipping, resizing/offsetting and more for planar polygons with integral coordinates.

    Algorithms Data Math Unknown
    Unknown
  • QVM

    Generic C++ library for working with Quaternions Vectors and Matrices.

    C++ 03
  • Range

    A new infrastructure for generic algorithms that builds on top of the new iterator concepts.

    Algorithms C++ 03
    C++ 03
  • Sort

    High-performance templated sort functions.

    Algorithms C++ 03
    C++ 03
  • String Algo

    String algorithms library.

    C++ 03

Asynchronous

Awaitables

Concurrent

  • Asio

    Portable networking and other low-level I/O, including sockets, timers, hostname resolution, socket iostreams, serial ports, file descriptors and Windows HANDLEs.

    Concurrent IO C++ 11
    C++ 11
  • Atomic

    C++11-style atomic types.

    Concurrent C++ 11
    C++ 11
  • Beast

    Portable HTTP, WebSocket, and network operations using only C++11 and Boost.Asio

    Concurrent IO C++ 11
    C++ 11
  • Cobalt

    Coroutines. Basic Algorithms & Types

    C++ 20
  • Compute

    Parallel/GPU-computing library

    Concurrent Unknown
    Unknown
  • Context

    (C++11) Context switching library.

    C++ 11
  • Coroutine

    Coroutine library.

    Concurrent Unknown
    Unknown
  • Coroutine2

    (C++11) Coroutine library.

    Concurrent C++ 11
    C++ 11
  • Fiber

    (C++11) Userland threads library.

    C++ 11
  • Interprocess

    Shared memory, memory mapped files, process-shared mutexes, condition variables, containers and allocators.

    Concurrent C++ 03
    C++ 03
  • Lockfree

    Lockfree data structures.

    Concurrent C++ 14
    C++ 14
  • MPI

    Message Passing Interface library, for use in distributed-memory parallel application programming.

    Concurrent C++ 03
    C++ 03
  • MQTT5

    MQTT5 client library built on top of Boost.Asio.

    Concurrent IO C++ 17
    C++ 17
  • MySQL

    MySQL client library built on top of Boost.Asio.

    Concurrent IO C++ 11
    C++ 11
  • Redis

    Redis async client library built on top of Boost.Asio.

    Concurrent IO C++ 17
    C++ 17
  • Thread

    Portable C++ multi-threading. C++11, C++14, C++17.

    C++ 11

Containers

Coroutines

Correctness

  • Assert

    Customizable assert macros.

    C++ 03
  • Concept Check

    Tools for generic programming.

    C++ 03
  • Contract

    Contract programming for C++. All contract programming features are supported: Subcontracting, class invariants, postconditions (with old and return values), preconditions, customizable actions on assertion failure (e.g., terminate or throw), optional compilation and checking of assertions, etc.

    Correctness C++ 11
    C++ 11
  • Safe Numerics

    Guaranteed Correct Integer Arithmetic

    Math Correctness C++ 14
    C++ 14
  • Stacktrace

    Gather, store, copy and print backtraces.

    C++ 11
  • Static Assert

    Static assertions (compile time assertions). Merged into Boost.Config.

    C++ 03
  • Test

    Support for simple program testing, full unit testing, and for program execution monitoring.

    Correctness C++ 11
    C++ 11

Data

  • Any

    Safe, generic container for single values of different value types.

    Data C++ 11
    C++ 11
  • Bimap

    Bidirectional maps library for C++. With Boost.Bimap you can create associative containers in which both types can be used as key.

    Containers Data C++ 03
    C++ 03
  • Compressed Pair

    A pair class with empty member optimization.

    Data Patterns C++ 03
    C++ 03
  • Container

    Standard library containers and extensions.

    Containers Data C++ 03
    C++ 03
  • Fusion

    Library for working with tuples, including various containers, algorithms, etc.

    C++ 03
  • Geometry

    The Boost.Geometry library provides geometric algorithms, primitives and spatial index.

    C++ 14
  • Heap

    Priority queue data structures.

    Data C++ 14
    C++ 14
  • Histogram

    Fast multi-dimensional histogram with convenient interface for C++14

    C++ 14
  • ICL

    Interval Container Library, interval sets and maps and aggregation of associated values

    Containers Data C++ 03
    C++ 03
  • JSON

    JSON parsing, serialization, and DOM in C++11

    Containers Data IO C++ 11
    C++ 11
  • Multi-Index

    The Boost Multi-index Containers Library provides a class template named multi_index_container which enables the construction of containers maintaining one or more indices with different sorting and access semantics.

    Containers Data C++ 11
    C++ 11
  • Optional

    A value-semantic, type-safe wrapper for representing 'optional' (or 'nullable') objects of a given type. An optional object may or may not contain a value of the underlying type.

    Data C++ 11
    C++ 11
  • PFR

    Basic reflection for user defined types.

    C++ 14
  • Pointer Container

    Containers for storing heap-allocated polymorphic objects to ease OO-programming.

    Containers Data C++ 11
    C++ 11
  • Polygon

    Voronoi diagram construction and booleans/clipping, resizing/offsetting and more for planar polygons with integral coordinates.

    Algorithms Data Math Unknown
    Unknown
  • Property Tree

    A tree data structure especially suited to storing configuration data.

    Containers Data C++ 11
    C++ 11
  • Tuple

    Ease definition of functions returning multiple values, and more.

    Data C++ 03
    C++ 03
  • Type Erasure

    Runtime polymorphism based on concepts.

    Data C++ 03
    C++ 03
  • URL

    URL parsing in C++11

    Containers Data IO C++ 11
    C++ 11
  • Uuid

    A universally unique identifier.

    Data Domain C++ 11
    C++ 11
  • Variant

    Safe, generic, stack-based discriminated union container.

    Containers Data C++ 11
    C++ 11
  • Variant2

    A never-valueless, strong guarantee implementation of std::variant.

    Containers Data C++ 11
    C++ 11

Data structures

  • Dynamic Bitset

    The dynamic_bitset template represents a set of bits. It provides access to the value of individual bits via operator[] and provides all of the bitwise operators that one can apply to builtin integers, such as operator& and operator<<. The number of bits in the set can change at runtime.

    C++ 11

Domain

  • Chrono

    Useful time utilities. C++11.

    Domain System C++ 11
    C++ 11
  • CRC

    The Boost CRC Library provides two implementations of CRC (cyclic redundancy code) computation objects and two implementations of CRC computation functions. The implementations are template-based.

    Domain C++ 11
    C++ 11
  • Date Time

    A set of date-time libraries based on generic programming concepts.

    Domain System C++ 11
    C++ 11
  • Units

    Zero-overhead dimensional analysis and unit/quantity manipulation and conversion.

    Domain Unknown
    Unknown
  • Uuid

    A universally unique identifier.

    Data Domain C++ 11
    C++ 11

Emulation

  • Compat

    C++11 implementations of standard components added in later C++ standards.

    C++ 11
  • Describe

    A C++14 reflection library.

    Unknown
  • Exception

    The Boost Exception library supports transporting of arbitrary data in exception objects, and transporting of exceptions between threads.

    C++ 03
  • Foreach

    In C++, writing a loop that iterates over a sequence is tedious. We can either use iterators, which requires a considerable amount of boiler-plate, or we can use the std::for_each() algorithm and move our loop body into a predicate, which requires no less boiler-plate and forces us to move our logic far from where it will be used. In contrast, some other languages, like Perl, provide a dedicated "foreach" construct that automates this process. BOOST_FOREACH is just such a construct for C++. It iterates over sequences for us, freeing us from having to deal directly with iterators or write predicates.

    Unknown
  • Move

    Portable move semantics for C++03 and C++11 compilers.

    Emulation C++ 03
    C++ 03
  • OpenMethod

    Open-methods are virtual functions that exist outside of classes, as free-standing functions. They make it possible to add polymorphic behavior to existing classes, without modifying them. This implementation supports single and multiple dispatch.

    C++ 17
  • Outcome

    A deterministic failure handling library partially simulating lightweight exceptions.

    C++ 14
  • Parameter

    Boost.Parameter Library - Write functions that accept arguments by name.

    C++ 03
  • Parameter Python Bindings

    Boost.Parameter Library Python bindings.

    C++ 03
  • Scope

    A collection of scope guards and a unique_resource wrapper.

    C++ 11
  • Scope Exit

    Execute arbitrary code at scope exit.

    Emulation Unknown
    Unknown
  • ThrowException

    A common infrastructure for throwing exceptions from Boost libraries.

    C++ 03
  • Type Index

    Runtime/Compile time copyable type info.

    Emulation C++ 11
    C++ 11
  • Typeof

    Typeof operator emulation.

    Emulation C++ 11
    C++ 11

Error-handling

Function-objects

Generic

Image-processing

Inter-language

  • Python

    The Boost Python Library is a framework for interfacing Python and C++. It allows you to quickly and seamlessly expose C++ classes functions and objects to Python, and vice-versa, using no special tools -- just your C++ compiler.

    C++ 03

IO

  • Asio

    Portable networking and other low-level I/O, including sockets, timers, hostname resolution, socket iostreams, serial ports, file descriptors and Windows HANDLEs.

    Concurrent IO C++ 11
    C++ 11
  • Assign

    Filling containers with constant or generated data has never been easier.

    IO C++ 11
    C++ 11
  • Beast

    Portable HTTP, WebSocket, and network operations using only C++11 and Boost.Asio

    Concurrent IO C++ 11
    C++ 11
  • Endian

    Types and conversion functions for correct byte ordering and more regardless of processor endianness.

    C++ 11
  • Format

    The format library provides a type-safe mechanism for formatting arguments according to a printf-like format-string.

    IO String C++ 11
    C++ 11
  • IO

    Utilities for the standard I/O library.

    IO C++ 03
    C++ 03
  • Iostreams

    Boost.IOStreams provides a framework for defining streams, stream buffers and i/o filters.

    IO String C++ 03
    C++ 03
  • JSON

    JSON parsing, serialization, and DOM in C++11

    Containers Data IO C++ 11
    C++ 11
  • MQTT5

    MQTT5 client library built on top of Boost.Asio.

    Concurrent IO C++ 17
    C++ 17
  • MySQL

    MySQL client library built on top of Boost.Asio.

    Concurrent IO C++ 11
    C++ 11
  • Program Options

    The program_options library allows program developers to obtain program options, that is (name, value) pairs from the user, via conventional methods such as command line and config file.

    IO Miscellaneous C++ 11
    C++ 11
  • Redis

    Redis async client library built on top of Boost.Asio.

    Concurrent IO C++ 17
    C++ 17
  • Serialization

    Serialization for persistence and marshalling.

    IO C++ 03
    C++ 03
  • URL

    URL parsing in C++11

    Containers Data IO C++ 11
    C++ 11

Iterators

  • GIL

    (C++14) Generic Image Library

    C++ 14
  • Graph

    The BGL graph interface and graph components are generic, in the same sense as the Standard Template Library (STL).

    C++ 14
  • GraphParallel

    The PBGL graph interface and graph components are generic, in the same sense as the Standard Template Library (STL).

    C++ 03
  • Iterator

    The Boost Iterator Library contains two parts. The first is a system of concepts which extend the C++ standard iterator requirements. The second is a framework of components for building iterators based on these extended concepts and includes several useful iterator adaptors.

    Iterators C++ 11
    C++ 11
  • Operators

    Templates to simplify operator definition in arithmetic classes and iterators.

    C++ 03
  • Tokenizer

    Break of a string or other character sequence into a series of tokens.

    Iterators String C++ 03
    C++ 03

Math

  • Accumulators

    Framework for incremental calculation, and collection of statistical accumulators.

    Math C++ 03
    C++ 03
  • Endian

    Types and conversion functions for correct byte ordering and more regardless of processor endianness.

    C++ 11
  • Geometry

    The Boost.Geometry library provides geometric algorithms, primitives and spatial index.

    C++ 14
  • Histogram

    Fast multi-dimensional histogram with convenient interface for C++14

    C++ 14
  • Integer

    The organization of boost integer headers and classes is designed to take advantage of <stdint.h> types from the 1999 C standard without resorting to undefined behavior in terms of the 1998 C++ standard. The header <boost/cstdint.hpp> makes the standard integer types safely available in namespace boost without placing any names in namespace std.

    Math C++ 03
    C++ 03
  • Interval

    Extends the usual arithmetic functions to mathematical intervals.

    Math C++ 03
    C++ 03
  • Math

    Boost.Math includes several contributions in the domain of mathematics: Floating Point Utilities, Specific Width Floating Point Types, Mathematical Constants, Statistical Distributions, Special Functions, Root Finding and Function Minimization, Polynomials and Rational Functions, Interpolation, and Numerical Integration and Differentiation. Many of these features are templated to support both built-in, and extended width types (e.g. Boost.Multiprecision)

    Math C++ 14
    C++ 14
  • Multi-Array

    Boost.MultiArray provides a generic N-dimensional array concept definition and common implementations of that interface.

    Containers Math C++ 03
    C++ 03
  • Multiprecision

    Extended precision arithmetic types for floating point, integer, and rational arithmetic.

    Math C++ 14
    C++ 14
  • Numeric Conversion

    Optimized Policy-based Numeric Conversions.

    C++ 03
  • Odeint

    Solving ordinary differential equations.

    Math C++ 11
    C++ 11
  • Operators

    Templates to simplify operator definition in arithmetic classes and iterators.

    C++ 03
  • Polygon

    Voronoi diagram construction and booleans/clipping, resizing/offsetting and more for planar polygons with integral coordinates.

    Algorithms Data Math Unknown
    Unknown
  • QVM

    Generic C++ library for working with Quaternions Vectors and Matrices.

    C++ 03
  • Random

    A complete system for random number generation.

    Math C++ 11
    C++ 11
  • Ratio

    Compile time rational arithmetic. C++11.

    Math C++ 11
    C++ 11
  • Rational

    A rational number class.

    Math C++ 11
    C++ 11
  • Safe Numerics

    Guaranteed Correct Integer Arithmetic

    Math Correctness C++ 14
    C++ 14
  • uBLAS

    uBLAS provides tensor, matrix, and vector classes as well as basic linear algebra routines. Several dense, packed and sparse storage schemes are supported.

    Math Unknown
    Unknown

Math and numerics

Memory

  • Align

    Memory alignment functions, allocators, traits.

    Memory C++ 03
    C++ 03
  • Pool

    Memory pool management.

    Memory C++ 03
    C++ 03
  • Smart Ptr

    Smart pointer class templates.

    Memory C++ 11
    C++ 11

Metaprogramming

  • CallableTraits

    A spiritual successor to Boost.FunctionTypes, Boost.CallableTraits is a header-only C++11 library for the compile-time inspection and manipulation of all 'callable' types. Additional support for C++17 features.

    C++ 11
  • Describe

    A C++14 reflection library.

    Unknown
  • Function Types

    Boost.FunctionTypes provides functionality to classify, decompose and synthesize function, function pointer, function reference and pointer to member types.

    C++ 03
  • Fusion

    Library for working with tuples, including various containers, algorithms, etc.

    C++ 03
  • Hana

    A modern C++ metaprogramming library. It provides high level algorithms to manipulate heterogeneous sequences, allows writing type-level computations with a natural syntax, provides tools to introspect user-defined types and much more.

    C++ 14
  • HOF

    Higher-order functions for C++

    C++ 11
  • Metaparse

    A library for generating compile time parsers parsing embedded DSL code as part of the C++ compilation process

    C++ 03
  • Mp11

    A C++11 metaprogramming library.

    C++ 11
  • MPL

    The Boost.MPL library is a general-purpose, high-level C++ template metaprogramming framework of compile-time algorithms, sequences and metafunctions. It provides a conceptual foundation and an extensive set of powerful and coherent tools that make doing explict metaprogramming in C++ as easy and enjoyable as possible within the current language.

    C++ 03
  • PFR

    Basic reflection for user defined types.

    C++ 14
  • Proto

    Expression template library and compiler construction toolkit for domain-specific embedded languages.

    C++ 11
  • Static Assert

    Static assertions (compile time assertions). Merged into Boost.Config.

    C++ 03
  • TTI

    Type Traits Introspection library.

    C++ 03
  • Type Traits

    Templates for fundamental properties of types.

    C++ 03
  • YAP

    An expression template library for C++14 and later.

    C++ 14

Miscellaneous

  • CharConv

    An implementation of <charconv> in C++11.

    C++ 11
  • Conversion

    Polymorphic casts.

    Miscellaneous C++ 11
    C++ 11
  • Convert

    An extendible and configurable type-conversion framework.

    C++ 11
  • Core

    A collection of simple core utilities with minimal dependencies.

    Miscellaneous C++ 03
    C++ 03
  • Detail

    This library contains a set of header only utilities used internally by Boost C++ Libraries to facilitate their implementation.

    Miscellaneous Unknown
    Unknown
  • Endian

    Types and conversion functions for correct byte ordering and more regardless of processor endianness.

    C++ 11
  • Lexical Cast

    General literal text conversions, such as an int represented a string, or vice-versa.

    C++ 11
  • Log

    Logging library.

    Miscellaneous C++ 11
    C++ 11
  • Numeric Conversion

    Optimized Policy-based Numeric Conversions.

    C++ 03
  • Predef

    This library defines a set of compiler, architecture, operating system, library, and other version numbers from the information it can gather of C, C++, Objective C, and Objective C++ predefined macros or those defined in generally available headers.

    Miscellaneous C++ 98
    C++ 98
  • Program Options

    The program_options library allows program developers to obtain program options, that is (name, value) pairs from the user, via conventional methods such as command line and config file.

    IO Miscellaneous C++ 11
    C++ 11
  • Swap

    Enhanced generic swap function.

    Miscellaneous C++ 03
    C++ 03
  • Timer

    Event timer, progress timer, and progress display classes.

    Miscellaneous C++ 03
    C++ 03
  • Tribool

    3-state boolean type library.

    Miscellaneous C++ 03
    C++ 03
  • Utility

    Various utilities, such as base-from-member idiom and binary literals in C++03.

    C++ 03
  • Value Initialized

    Wrapper for uniform-syntax value initialization, based on the original idea of David Abrahams.

    Miscellaneous C++ 03
    C++ 03
  • WinAPI

    Windows API abstraction layer.

    Miscellaneous C++ 03
    C++ 03

Parsing

  • Parser

    A parser combinator library.

    Parsing C++ 17
    C++ 17
  • Spirit

    LL parser framework represents parsers directly as EBNF grammars in inlined C++.

    Parsing String C++ 03
    C++ 03

Patterns

Preprocessor

  • Identity Type

    Wrap types within round parenthesis so they can always be passed as macro parameters.

    Preprocessor C++ 03
    C++ 03
  • Preprocessor

    Preprocessor metaprogramming tools including repetition and recursion.

    Preprocessor C++ 03
    C++ 03
  • VMD

    Variadic Macro Data library.

    Preprocessor C++ 03
    C++ 03

Programming

State

  • Meta State Machine

    A very high-performance library for expressive UML2 finite state machines.

    State C++ 03
    C++ 03
  • Statechart

    Boost.Statechart - Arbitrarily complex finite state machines can be implemented in easily readable and maintainable C++ code.

    State C++ 03
    C++ 03

String

  • CharConv

    An implementation of <charconv> in C++11.

    C++ 11
  • Convert

    An extendible and configurable type-conversion framework.

    C++ 11
  • Format

    The format library provides a type-safe mechanism for formatting arguments according to a printf-like format-string.

    IO String C++ 11
    C++ 11
  • Iostreams

    Boost.IOStreams provides a framework for defining streams, stream buffers and i/o filters.

    IO String C++ 03
    C++ 03
  • Lexical Cast

    General literal text conversions, such as an int represented a string, or vice-versa.

    C++ 11
  • Locale

    Provide localization and Unicode handling tools for C++.

    String C++ 11
    C++ 11
  • Regex

    Regular expression library.

    String C++ 11
    C++ 11
  • Spirit

    LL parser framework represents parsers directly as EBNF grammars in inlined C++.

    Parsing String C++ 03
    C++ 03
  • Static String

    A fixed capacity dynamically sized string.

    C++ 11
  • String Algo

    String algorithms library.

    C++ 03
  • String View

    String view templates.

    C++ 03
  • Tokenizer

    Break of a string or other character sequence into a series of tokens.

    Iterators String C++ 03
    C++ 03
  • Wave

    The Boost.Wave library is a Standards conformant, and highly configurable implementation of the mandated C99/C++ preprocessor functionality packed behind an easy to use iterator interface.

    String C++ 11
    C++ 11
  • Xpressive

    Regular expressions that can be written as strings or as expression templates, and which can refer to each other and themselves recursively with the power of context-free grammars.

    String Unknown
    Unknown

System

Workarounds

  • Config

    Helps Boost library developers adapt to compiler idiosyncrasies; not intended for library users.

    Workarounds C++ 03
    C++ 03