找到一个链接,关于float做key “HOWEVER, you should not be using a floating point for any part of a key in any map -- for the same reason you shouldn't use them with == and != operators. Since floating points are approximations, they are unreliable as keys.“ http://www.cplusplus.com/forum/beginner/56918/
找到一个链接,关于float做key “HOWEVER, you should not be using a floating point for any part of a key in any map -- for the same reason you shouldn't use them with == and != operators. Since floating points are approximations, they are unreliable as keys.“ http://www.cplusplus.com/forum/beginner/56918/