A Short Introduction to Selected Classes of the Boost C++ Library

21 downloads 65 Views 743KB Size Report
A Short Introduction to Selected Classes of the Boost C++ Library ... Boost has some useful and convenient macros which we will discuss first. The C++ code for.
A Short Introduction to Selected Classes of the Boost C++ Library

Dimitri Reiswich

December 2010

Dimitri Reiswich

Boost Intro

December 2010

1 / 98

1

Useful Macros

2

Boost Shared Pointer Exercise

3

Distribution Functions

4

Random Numbers Exercise

5

Function

6

Bind Exercise

7

The Any Class

8

Optional

9

Serialization

10

Filesystem

11

Matrix operations with uBLAS

Dimitri Reiswich

Boost Intro

December 2010

2 / 98

Boost has some useful and convenient macros which we will discuss first. The C++ code for the following discussion is shown below. # include # include # include # include # include

< vector > < boost / current_function . hpp > < boost / foreach . hpp > < boost / static_assert . hpp > < boost / detail / lightweight_test . hpp >

# define MY_NUM 1300 void testMacroa (){ std :: cout