Jump to my Home Page Send me a message Check out stuff on GitHub Check out my photography on Instagram Check out my profile on LinkedIn Check me out on Facebook

Example Boost Programs

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
Minimal pthread style example of the boost thread library
threadSimple.cpp
Minimal C++ style example of the boost thread library.
tokenExample.cpp
Simple, but complete, example showing the most typical use of the Boost tokenizer template.
© 2009 Mitch Richling