I want to use a custom class of mine as the value of a std::unordered_map
such as
class customClass {
private:
int m_age;
std::string m_name;
public:
int getAge() { return m_age; }
std::string getName() { return m_name; }
};
...
std::unordered_map<std::string, customClass> entries;
I know for this to work and me be able to insert key / value pairs I have to overload some operators but do I overload the == operator for std::string? something else? Bit lost, cheers for any help