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/libboost$VERSION-doc, where $VERSION will depend on the version of Ubuntu.

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 .

 

System status green status

Can't find what you're looking for?

Then you might find our A-Z site index useful. Or, you can search the site using the box at the top of the page, or by clicking here.