¡@

Home 

c++ Programming Glossary: sanedouble

Are IEEE floats valid key types for std::map and std::set?

http://stackoverflow.com/questions/4816156/are-ieee-floats-valid-key-types-for-stdmap-and-stdset

entry to the map not on every comparison as above. struct SaneDouble double value SaneDouble double d value d if d d throw std logic_error.. every comparison as above. struct SaneDouble double value SaneDouble double d value d if d d throw std logic_error static friend.. d if d d throw std logic_error static friend bool operator SaneDouble lhs SaneDouble rhs return lhs.value rhs.value possibly a conversion..