On Tue, Mar 12, 2002 at 10:08:29AM +0100, Lars Gullik Bjønnes wrote:
> |   cstring s("hello");
> |   cout << (s == "hello") << "\n";
> |   // i.e. syntax similar to std::string, but none of its overhead
> 
> What overhead for const string?

To be able to use operator==()
 
> On speed you gain nothing.

We gain if compared to std::string. 

> On memory usage you gain nothing that a specialized allocator wouldn't
> give you.

We gain compared to out-of-the-box std::string.

> What would the point of such a class be?

We use strings as syntactic sugar. 'cstring' would give us this sugar
without the pain of #include <string> in most cases.

Andre'

-- 
André Pönitz .............................................. [EMAIL PROTECTED]

Reply via email to