作者:gaoming1010_143 | 来源:互联网 | 2023-09-14 11:06
This question already has an answer here:
这个问题在这里已有答案:
- C++, Free-Store vs Heap 7 answers
C ++,Free-Store vs Heap 7答案
Originally a pedantics war on @Als answer here, it also sparked a discussion in the C++ chatroom.
最初对@Als的一场迂腐战争在这里回答,它也引发了C ++聊天室的讨论。
This article by Herb Sutter distinguishes between the two, but is also over a decade old, as it clearly was written before 2000 and also talks about the standard draft, which can only mean C++98 draft. Though, I still expect Herb, as part of the committee, to be knowledgeable about this stuff.
Herb Sutter的这篇文章区分了两者,但也有十多年的历史,因为它显然是在2000年之前编写的,并且还讨论了标准草案,它只能代表C ++ 98草案。尽管如此,作为委员会成员,我仍然希望Herb能够了解这些东西。
I know of this and this question/answer, but the second just cites Herb's article while the first cites another source that simply rejects the use of the term "heap", aka they are both not exactly satisfactory. Also, I can't find any free-store
or freestore
tag on SO (until this question, I created the former one now).
我知道这个和这个问题/答案,但第二个引用了Herb的文章,而第一个引用了另一个简单地拒绝使用术语“堆”的来源,也就是说它们都不完全令人满意。另外,我在SO上找不到任何免费商店或freestore标签(直到这个问题,我现在创建了前一个)。
Now, what is really the difference, if any?
现在,真的有什么区别,如果有的话?
3 个解决方案