Hi,
The string::capacit y() returns the size of the allocated space, which is either equal or greater than this content size.
My question is: Is capacity assigning equal or greater than content size compiler dependent??
I've used the same function in a sample C++ program and compiled it with g++ compiler(linux) . The result is always equal to the content size but never greater.
can some one help me in clarifying this.
The string::capacit y() returns the size of the allocated space, which is either equal or greater than this content size.
My question is: Is capacity assigning equal or greater than content size compiler dependent??
I've used the same function in a sample C++ program and compiled it with g++ compiler(linux) . The result is always equal to the content size but never greater.
can some one help me in clarifying this.
Comment