C++ finance library of function