Here you will find just a few simple programs illustrating some of the boost stuff I use most frequently. Don't let
this small set of samples fool you into thinking boost is a small library; I have not even scratched the surface of
boost here! The makefile is
here.
The basics & Types
- boostRandEx.cpp
- Demonstration of boost's random number generation API. For random number generation, look
here.
- format.cpp
- Example of various
printf-like formatting
- intervalA.cpp
- Interval arithmetic with boost.
- regexExample1.cpp
- Simple example of boost's regular expression tools.
- splitWithTokenizer.cpp
- Split is one of the "must have" functions in any language.
- threadBind.cpp
- Minimal example of the boost thread library using a typical bind class paradigm.
- threadCond.cpp
- Just about minimal example of the boost thread library.
- threadFunc.cpp
- Just about minimal example of the boost thread library using a typical pthread-like paradigm -- a paradigm that
should make C programmers very comfortable. Only the thread and mutex classes are demonstrated.
- threadSimple.cpp
- Just about minimal example of the boost thread library.
- tokenExample.cpp
- Simple, but complete, example showing the most typical use of the Boost tokenizer template.