#ifndef UTIL_H #define UTIL_H #include template inline int Swprintf(wchar_t (&buf)[N], const wchar_t* const fmt, T... xs) { return _snwprintf_s(buf, N, _TRUNCATE, fmt, xs...); } inline int Cmp(const int a, const int b) { if (a == b) return 0; if (a > b) return 1; return -1; } #endif