[cpp] Move string map over to use string hash directly, rather than via anon object