Re: [Stlport-devel] string, operator [] const
Brought to you by:
complement
From: Petr O. <pt...@is...> - 2006-02-13 05:37:08
|
On Sunday 12 February 2006 16:50, François Dumont wrote: > It depends on the sense you have given to this macro switch. > > I simply considered that previous implementation was paying cost for the > trailing '\0' character in all insertion methods. With > !_STLP_FORCE_STRING_TERMINATION you pay this cost only when you need it > that is to say in the basic_string::c_str method. If you build a string > by appending a lot of characters it can make a difference. > Ok, this issue should be clarified by test. I shall measure the times. - Petr |