W
wenmang
Hi,
I am debugging through a code and I like to know what is default memory
allocated by string default allocator when constructed through its
default ctor. I have stirng object, but cannot call upon it to access
its capacity:
debugger> p myData1
{
_String_base::_M_start=NULL
_String_base::_M_finish=NULL
_String_base::_M_end_of_storage=NULL
static basic_string::npos=4294967295
}
By looking at it, I have no clue how many chars(bytes) has been
allocated for it.
I am debugging through a code and I like to know what is default memory
allocated by string default allocator when constructed through its
default ctor. I have stirng object, but cannot call upon it to access
its capacity:
debugger> p myData1
{
_String_base::_M_start=NULL
_String_base::_M_finish=NULL
_String_base::_M_end_of_storage=NULL
static basic_string::npos=4294967295
}
By looking at it, I have no clue how many chars(bytes) has been
allocated for it.