creation of new and useful C++ library functions