FF's common used C++ code