Foam is a collection of small yet cross-platform C++ libraries and utilities written in C++11.


Foam is distributed under the Boost Software License, Copyright © 2013-2014 Sarfaraz Nawaz.

Supported Platforms

Foam has been tested with following platforms and compilers:

  • Win32 using GCC 4.7.0 (MinGW).

Source code

The source code can be found at:


  • Pipeline

    A LINQ-like library with few differences. It supports composition in a way that LINQ does not.

  • Expression

    An expression template library that works great with Foam.Pipeline as well as with the C++ Standard library.

A bit about Foam

The libraries and utilities are written out of fun while exploring various features of C++11. New ideas keep coming to my mind and I keep updating and refactoring the source code, making the programming experience better and better. It is a work in progress, with the following objectives and goals:

  • Cool, useful and powerful functionality.
  • Easy to use. Aesthetic coding.
  • Concise yet readable.
  • Performant.