Boost C++ Libraries

...one 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 a snapshot of the develop branch, built from commit 2e67a9c7ef.
PrevUpHomeNext

What is provided

Functions are provided to build and manipulate objects of the list type

list<T>

Namespace and header

The functions are in the namespace

boost::phoenix

defined by the header file

boost/phoenix/function/lazy_prelude.hpp

which includes all other needed headers. It is not currently included in

boost/phoenix/function.hpp

so it must be explicitly included to use these types and functions.

Integration with Boost Phoenix

The functions are defined by boost::phoenix::function which means that they work with phoenix arguments such as 'arg1'. They have been defined in such a way that when needed they can be passed as arguments to other functions.

Lazy List Type

list<T> (where T is the element type)

Functions

The functions are grouped as follows:

Arithmetic functions

plus
minus
multiplies
divides
modulus
negate

Boolean functions

equal
not_equal
greater
less
greater_equal
less_equal

Logical functions

logical_and
logical_or
logical_not

Operational functions

apply
until
until2
max
min
inc
dec
make_pair

Logical predicates

odd
even

List Functions

cons
cat
take
drop
last
all_but_last
at
length
filter

List Generation Functions

enum_from
enum_from_to
list_with

Futher functions

Further functions are in development from the resources available in FC++.


PrevUpHomeNext