Umm, this is a little more complicated but try to explain it to you. When you push something into vector object, there is no limitation actually and but inside of vector implementation, it has. Every time you push something and its capacity almost full it doubles its size. You cannot do it with stack but stack has limitation mostly 8 MB on Linux, for example. On other hand, this STL should work with thread-safe applications. So, their data should be sharable and if you keep them on stack, you cannot access them from another one. So, simply like that but there is more I cannot write.
Обсуждают сегодня