0

I am using Maps from the STL to insert a polynomial.

The Key is the exponent and the data is the coefficent.

Basically I want to add/subtract and multiply them.

I have the addition/subtraction down but when it comes to multiplying

I have to add the exponents and multiply the coefficients.

I can't alter the exponent cause is the key.

Is there an alternate approach? Can the key be modified?