I wonder how visual c++ std::string is populated in memory.
For example if I declare std::string container[10] in a shared memory region, then can I insert any length of string into this array at run-time ?
Since it is known that shared memory region can not expand at run-time, then how can we insert varying size of strings into this array ?
std::stringwill perform heap allocations (which won't be in the shared area by default) so any process trying to access the strings (other than the one that constructed them) will fail.