Free peer-reviewed portable C++ libraries
Availability
Instructions for users
On Ubuntu this is available by default.
Licence Details
Boost licence which is an open source licence.
Documentation
Have a look in /usr/share/doc/libboost1.71-doc on 20.04 focal and /usr/share/doc/libboost1.65-doc on 18.04 bionic.
Source
Admin notes
A quick test, taken from the boost documentation:
#include <boost/lambda/lambda.hpp> #include <iostream> #include <iterator> #include <algorithm> int main() { using namespace boost::lambda; typedef std::istream_iterator<int> in; std::for_each( in(std::cin), in(), std::cout << (_1 * 3) << " " ); } To test this:
$ g++ -o boost boost.cpp $ echo 1 2 3 | ./boost 3 6 9
The test is really whether it finds the headers OK at compile time.
On Ubuntu the packages are split up and so we can get away with just installing libboost-math-dev and libboost-doc .