Here are some (hopefully useful) c++ snippets. Probably all are header only, with a main.cpp for testing.