<div dir="ltr"><div>is there a way to do this efficiently with associative arrays:<div><br></div><div>aa[key]=value;<br></div><div>auto ptr=key in aa;<br></div><div><br></div><div>without suffering the cost of the 2nd search (compiler should know ptr during aa[key]=value but it's not exposed it seems)</div></div><div><br></div></div>