问题
Is alloca part of the C++ standard?
回答1:
No. The answer says it all.
回答2:
Not only is it not part of the C++ standard, it is not part of any standard. It's not part of C nor is it part of POSIX. Furthermore, allow me to quote from the Linux man page for alloca(3)
:
The alloca() function is machine and compiler dependent. On many systems its implementation is buggy. Its use is discouraged.
(emphasis added)
来源:https://stackoverflow.com/questions/2318306/is-alloca-part-of-the-c-standard