#include <map>
#include <string>
using namespace std;
class myclass
{
typedef map<String,double> MateAmount_type;
typedef MateAmount_type::value_type value_type;
private:
....
public:
MateAmount_type mate_amount;
....
};
mate_amount.insert(value_type(String("aaaa"),1));
mate_amount.insert(value_type(String("bbbb"),2));