You could use an empty class rather than a mildly confusing alias for int
:
struct nothing {};
CustomMap<std::string, nothing> map;
map.put("test", nothing());
I also wouldn't use SHOUTY_CAPS; as well as being harder to read, they're conventionally reserved for macros, to reduce the danger of the preprocessor stomping over language-level names.