FastFormat 是一个C/C++格式化输出的库,输入的参数是类型安全的/范型的/可扩展的。
示例代码:
std::string fmt0("A c-style string: {0}"); std::string fmt1("A std::string: {0}"); std::string fmt2("A c-style string: {0}, and a std::string: {1}"); std::string fmt3("A c-style string: {1}, and an int: {0}");