template<wchar_t* x>
using kdata = std::integral_constant<wchar_t*, x>;
static std::map<std::wstring, wchar_t*> mp = {
{L"test", kdata<encoder<4>(L"Tes").data>}
};
for (auto i = mp.begin(); i != mp.end(); i++) {
MessageBox(0, i->second, i->first.data(), MB_OK);
}
template <int size>
constexpr dataString<size> encoder(const wchar_t* str) {
dataString<size> result;
for (int i = 0; i != result.size; i++) {
result.data[i] = str[i] ^ (wchar_t)key;
}
return result;
}