Displaying 2 results from an estimated 2 matches for "20c1a0f0".
Did you mean:
00c1a000
2008 Jun 06
2
[LLVMdev] Adding DenseMap::FindAndConstruct with a default value
> Assuming the default value is not a valid entry in your map (for instance,
> if you're using pointers), you can do:
>
> Foo& entry = DenseMap[Key]
> if (entry == DefaultValue)
> entry = constructNewValue();
The problem here is that the DefaultValue is undefined. However, Chris
suggested that the default value, ValueT(), is not undefined but simply zero.
However, on
2008 Jun 06
0
[LLVMdev] Adding DenseMap::FindAndConstruct with a default value
On Fri, Jun 6, 2008 at 12:27 AM, Matthijs Kooijman <matthijs at stdin.nl> wrote:
>> Assuming the default value is not a valid entry in your map (for instance,
>> if you're using pointers), you can do:
>>
>> Foo& entry = DenseMap[Key]
>> if (entry == DefaultValue)
>> entry = constructNewValue();
> The problem here is that the DefaultValue