Object-Oriented Programming · Hudson River Trading · Medium
Problem Design a C++ template class named KVStore that provides a uniform interface over either std::map or std::unordered_map. The class must be parameterized on the container type, and the key and value types are restricted to int and std::string. Requirements The container type template parameter must accept std::map or std::unordered_map . K and V are limited to int or std::string. Expose a consistent API using templates, leveraging overloading, partial specialization,…
Checking your access…