Efficient implementation of associative_property_map