What is the difference between the heap and the free store? [duplicate]

This question already has an answer here:

Originally a pedantics war on @Als answer here, it also sparked a discussion in the C++ chatroom.

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.

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).

Now, what is really the difference, if any?

22
задан Community 23 May 2017 в 12:02
поделиться