为什么 BigInt、BigNum 或任意精度算术不存在于 STL 或 C++ 标准库中?
Is there a specific reason for this?
Was it a design decision?
Big number in C++ along with other search results show classes written to account for this.
I wonder if the future version would include this feature.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
C++11 至少有两个大整数提案(n1718、n1744、n2143)。全部被拒绝。这就是为什么您在标准库中看不到它们
来自 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1954.html:
拒绝 n1718 和 n2143:http://www .open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2870.html (只是一个表格,这里没有给出原因)
There were at least two big integer proposals to C++11 (n1718, n1744, n2143). All are rejected. Which is why you don't see them in the standard library
From http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1954.html:
Rejection of n1718 and n2143: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2870.html (just a table, no reason given here)