Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

List Generation

One of the most interesting capabilities of FC++ is the generation of infinite lazy lists which are evaluated only at need. The most simple example of this is


which returns the generator for integers 1,2,3,..... infinity.


returns a list of the first 4 of the list.


returns the fourth member using zero indexed access. Both of the lists returned are lazy and only evaluated when the list members are accessed.