On 07/04/2015 04:02, MikeCopeland wrote:
> In article <
coggjr...@mid.individual.net>,
ian-...@hotmail.com
> says...
>>
>>> I have an std::map with a key that's quite large. The key data is
>>> comprised of numeric digits, so I can use either unsigned long or
>>> basic::string as the key type. The data range isn't sparse (371920945,
>>> 387731336, 388604385, 392868398, etc.). My concern is that with such
>>> a large key (as string type), would the map processing be significantly
>>> more efficient if the type for the key is declared as "unsigned
>>> long"...or does it not matter? TIA
>>
>> Why would you represent a numeric key as a string?
>
> No choice: that's the data I'm presented from the client; 8<{{
sausages instead of a string. Just because the data presented to you is