// SPDX-License-Identifier: MIT // SPDX-FileCopyrightText: 2023 SASANO Takayoshi #ifndef DATASTORE_H #define DATASTORE_H #include #include template struct data_entry { std::wstring key; T value; }; template class data_store { public: std::map> db; void set(wchar_t *key, T value) { data_entry d; d.key = key; d.value = value; db.emplace(d.key, d); }; void init(void) { db.clear(); }; }; #endif