C++ mapの使い方

key, valueの連想配列class

struct Person {
    public:
        Person(const string &name, int height)
            : m_name(name)
            , m_height(height)
            {}
    public:
        string m_name;
        int m_height;
}

    ...
    map<Person, int> mp;
    Person p("aaa", 180);
    mp[p] = 123;