Good way to use floating point numbers as keys in unordered_map

后端 未结 0 510
生来不讨喜
生来不讨喜 2020-12-18 01:13

In my scenario, two floating point numbers (say doubles) are considered equal if their absolute difference is within a certain range. This means it\'s easy to u

相关标签:
回答
  • 消灭零回复
提交回复
热议问题