boost


Introduction:

BOOST is a C++ library of high-quality functions which are
free, peer-reviewed, portable, intended to work with, and to extend,
the C++ Standard Library.

The scope of BOOST can be suggested by a list of the names of the
individual libraries it includes:
accumulators, algorithm, any, array, asio, assign, atomic, bimap,
bind and mem_fn, call_traits, chrono, circular_buffer, compatibility,
compressed_pair, concept check, config, container, context, conversion,
coroutine, crc, date_time, dynamic_bitset, exception, enable_if,
filesystem, flyweight, foreach, format, function, function_types,
functional, functional/factory, functional/forward, functional/hash,
functional/overloaded_function, fusion, gil, geometry, graph, heap,
icl, identity_type, integer, interprocess, interval, intrusive,
in_place_factory, io state savers, iostreams, iterator, lambda,
lexical_cast, local_function, locale, lockfree, log, math,
math/complex number algorithms, math/common_factor, math/constants,
math/floating point utilities, math/octonion, math/special_functions,
math/statistical distributions, math/quaternion, minmax, move, MPI,
mpl, meta state machine, multi_array, multi_index, multiprecision,
numeric/conversion, odeint, operators, optional, parameter, Phoenix,
Predef, pointer container, polygon, pool, preprocessor, program_options,
property map, property tree, proto, python, random, range, ratio,
rational, ref, regex, result_of, scope_exit, serialization, signals,
signals2, smart_ptr, statechart, static_assert, spirit, string_algo,
swap, system, test, thread, timer, tokenizer, TR1, tribool, tti, tuple,
type_erasure, type_traits, typeof, uBLAS, units, unordered, utility,
value_initialized, uuid, variant, wave, xpressive.

Web Site:

BOOST C++ libraries:

http://www.boost.org/

Reference:

Usage:

On any ARC cluster, check the installation details
by typing "module spider boost".

BOOST requires that the appropriate modules be loaded before it can
be used. One version of the appropriate commands for use on NewRiver is:

module purge
module load gcc/5.2.0
module load python/2.7.10
module load boost/1.58.0
    

Examples:

The following batch file compiles and executes a program that
uses functions from the BOOST library:

#! /bin/bash
#
#PBS -l walltime=0:05:00
#PBS -l nodes=1:ppn=1
#PBS -W group_list=newriver
#PBS -q open_q
#PBS -j oe
#
cd $PBS_O_WORKDIR
#
module purge
module load gcc/5.2.0
module load python/2.7.10
module load boost/1.58.0
#
g++ -c -I $BOOST_INC histogram.cpp
#
g++ -o histogram histogram.o -L$BOOST_LIB
#
./histogram

A complete set of files to carry out a similar process are available in
boost_example.tar