This seems most congenial. As Jake says, 0 is definitely handier for the sparse matrix/vector case and NaN is very nice for the collection case.
On Wed, Dec 16, 2009 at 3:10 PM, Jake Mannix <[email protected]> wrote: > Of course, you could also just have the {X}{Y}Map take a default value in > the constructor, and return this value whenever contains(k) == false. The > default default > value could be zero for integral types, and NaN for floating points. > -- Ted Dunning, CTO DeepDyve
