recycle is an implementation of a simple C++ resource pool.