Yes, this code will work for any type of key, including double. The reason for this is that non-const operator []returns a reference to the value in the key, and not to a copy of this value. This is the link to which the statement applies ++.
The selected code fragment works as follows:
t string strw- , .
- , ,
- (
int&, ) ++ , [], 0 1 ( 0.0 1.0 ..)