Boost (C++ libraries) explained

Boost C++ Libraries
Boost C++ Libraries
Logo Size:100px
Developer:Boost.org
Released:[1]
Programming Language:C++
Operating System:Cross-platform
Genre:Libraries
License:Boost Software License

The Boost C++ Libraries (also known simply as Boost) are a set of libraries for the C++ programming language that provides support for tasks and structures such as linear algebra, pseudorandom number generation, multithreading, image processing, regular expressions, and unit testing. It currently contains 170 individual libraries.[2]

All of the Boost libraries are licensed under the Boost Software License, designed to allow Boost to be used with both free and proprietary software projects.[3] Boost is used complementary with the C++ Standard Library to supplement its features. Many of Boost's founders are on the C++ standards committee, and several Boost libraries have been accepted for incorporation into the C++ Technical Report 1, the C++11 standard (e.g. smart pointers, threads, regular expressions, random number generation, rational arithmetic (ratio), tuples)[4] [5] and the C++17 standard (e.g. file system API, any types, option types, variant types, and string views).[6]

The Boost community emerged around 1998, when the first version of the standard was released. It has grown continuously since then and now plays a big role in the standardization of C++. Even though there is no formal relationship between the Boost community and the standardization committee, some of the developers are active in both groups.

Design

The libraries are aimed at a wide range of C++ users and application domains. They range from general-purpose libraries like the smart pointer library, to operating system abstractions like Boost FileSystem, to libraries primarily aimed at other library developers and advanced C++ users, like the template metaprogramming (MPL) and domain-specific language (DSL) creation (Proto).

In order to ensure efficiency and flexibility, Boost makes extensive use of templates. Boost has been a source of extensive work and research into generic programming and metaprogramming in C++.[7]

Most Boost libraries are header based, consisting of inline functions and templates, and as such do not need to be built in advance of their use. Some Boost libraries coexist as independent libraries.[8] [9] Some Boost libraries, such as boost.regex, are offered as modules, as the rest of the library begins to support modules.

Associated people

Boost was founded in 1998 by three members of the C++ Standards Committee: Beman Dawes, David Abrahams, and Robert Klarer. The idea originated during a conversation between Klarer and Dawes at the March 1998 C++ Standards Committee meeting in Sophia Antipolis, France, with Abrahams joining shortly thereafter to establish the first Boost mailing list.Web site: History of Boost . Boost Site Docs . The C++ Alliance . 26 January 2026. Web site: Remembering Beman Dawes . Stroustrup . Bjarne . Sutter . Herb . 1 December 2020 . Standard C++ . 26 January 2026.

Beman Dawes (died December 2020) served on the C++ Standards Committee (WG21) from 1992 and chaired the Library Working Group for five years during the completion of C++98.Web site: Remembering Beman Dawes . Stroustrup . Bjarne . Sutter . Herb . 1 December 2020 . Standard C++ . 26 January 2026. He was the original author of the Boost.Filesystem library, which later formed the basis for the std::filesystem library in C++17. Dawes was instrumental in establishing Boost's peer-review process and testing culture.Web site: History of Boost . Boost Site Docs . The C++ Alliance . 26 January 2026.

David Abrahams was a member of the C++ Standards Committee from 1996 to 2012 and is known for developing the theory of exception safety for C++, including the "Abrahams guarantees" framework.Web site: David Abrahams (computer programmer) . Wikipedia . 26 January 2026. He authored multiple Boost libraries including Boost.Python and co-authored the book C++ Template Metaprogramming (2004). In 2001, Abrahams founded Boost Consulting (later BoostPro Computing) to provide commercial support for Boost libraries.Web site: David Abrahams (computer programmer) . Wikipedia . 26 January 2026.

Robert Klarer, working at IBM, co-initiated the Boost concept with Dawes and contributed to early discussions on best practices for high-quality library development.Web site: History of Boost . Boost Site Docs . The C++ Alliance . 26 January 2026. Web site: The Future of Boost . Falco, Vinnie . 8 May 2023 . The C++ Alliance . 26 January 2026. There are mailing lists devoted to Boost library use and library development, active .[10]

License

Boost Software License
Author:Devin Smith[11]
Version:1.0
Date:17 August 2003
Spdx:BSL-1.0
Osi Approved:Yes
Fsf Approved:Yes
Gpl Compatible:Yes
Copyleft:No
Linking:Yes

Boost is licensed under its own free, open-source license, known as the Boost Software License.[12] It is a permissive license in the style of the BSD license and the MIT license, but without requiring attribution for redistribution in binary form.[13] The license has been OSI-approved since February 2008[14] [15] and is considered a free software license, compatible with the GNU General Public License, by the Free Software Foundation.[16]

See also

Further reading

Notes and References

  1. Web site: Old Versions. 11 April 2017.
  2. Web site: List of Boost libraries.
  3. Web site: Boost Software License. 2022-01-06. www.boost.org.
  4. Web site: Library Technical Report . JTC1/SC22/WG21 - The C++ Standards Committee . 2 July 2003 . 1 February 2012.
  5. Web site: A Threading API for C++.
  6. Web site: StackOverflow.com site.
  7. Book: Abrahams . David . Gurtovoy . Aleksey . C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond . Pearson Education . 10 December 2004 . 408.
  8. Web site: Asio web site.
  9. Web site: Spirit web-site.
  10. Web site: Boost Mailing Lists (A.K.A. Discussion Groups). 28 Apr 2020.
  11. Web site: Boost Software License . December 3, 2003 . . April 21, 2025 . April 24, 2025 . https://web.archive.org/web/20250424015917/https://www.boost.org/users/license.html . dead .
  12. Web site: Boost Software License - Version 1.0. TXT. August 17, 2003. December 22, 2023.
  13. Web site: Boost Software License . Dawes . Beman . 2016-08-01.
  14. Web site: Boost mailing list archive. https://web.archive.org/web/20161107222035/http://thread.gmane.org/gmane.comp.lib.boost.devel/178539. 2016-11-07. dead.
  15. Web site: Boost Software License 1.0 (BSL-1.0) Open Source Initiative. 5 February 2008 .
  16. Web site: Various Licenses and Comments about Them - GNU Project - Free Software Foundation (FSF).