포맷1 string formatting #include #include #include #include using namespace std; template std::string StringFormat(const std::string& format, Args ... args) { int bufSize = std::snprintf(nullptr, 0, format.c_str(), args ...) + 1; if (bufSize 2022. 8. 9. 이전 1 다음