Hello everyone,
The space in string should use heap address memory space, not stack, right? But through debugging, for example,
why I can not see the invocation of new operator? Anyone could point out where STL string class allocates space on heap and using which function to allocate please (any other approach other than using new to allocate space on heap?)?
thanks in advance,
George
The space in string should use heap address memory space, not stack, right? But through debugging, for example,
Code:
string str = "hello";
why I can not see the invocation of new operator? Anyone could point out where STL string class allocates space on heap and using which function to allocate please (any other approach other than using new to allocate space on heap?)?
thanks in advance,
George