3
I use a lot .push_back(element)
when I’m working with vector
, but I don’t know what’s the most elements I can add to a vector
before it overflows and performs the reallocation of a new space in memory.
Is there any mechanism I can use to know as many elements as the vector
supports? This value is always the same, so if you compile for any machine this value will not change?
https://gcc.gnu.org/onlinedocs/gcc-4.6.3/libstdc++/api/a01115_source.html
– Maniero
Most recent: https://gcc.gnu.org/onlinedocs/gcc-7.2.0/libstdc++/api/a15915_source.html
– Maniero