为什么 BigInt、BigNum 或任意精度算术不存在于 STL 或 C++ 标准库中?

发布于 2024-12-29 14:48:34 字数 184 浏览 2 评论 0原文

这有什么具体原因吗?

这是一个设计决定吗?

C++ 中的 Big number 以及其他搜索结果显示了为此而编写的类。

我想知道未来的版本是否会包含这个功能。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ˇ宁静的妩媚 2025-01-05 14:48:34

C++11 至少有两个大整数提案(n1718、n1744、n2143)。全部被拒绝。这就是为什么您在标准库中看不到它们

来自 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1954.html

C++0x 的 N1744 大整数库提案 日期:2005-01-13
状态:已关闭。

Lillehammer [2005-04]:我们还没有看到对用例的分析,因此我们不知道这对哪些社区很重要,他们的需求是什么,以及这种类型是否满足他们的需求。

拒绝 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:

N1744 Big Integer Library Proposal for C++0x Date: 2005-01-13
Status: Closed.

Lillehammer [2005-04]: We haven't seen an analysis of use cases, so we don't know which communities this is important to, what their needs are, and whether this type meets their needs.

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文