This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Basic_string::insert


Sorry,

there is a small error in the tentative Changelog: insert(__pos, __s) already calls
insert(__pos, __s, __n) and its behaviour is affected indirectly.

Cheers,
Paolo.

/////////////

2001-12-18  Paolo Carlini  <pcarlini@unitus.it>
            Nathan Myers  <ncm@cantrip.org>

        * include/bits/basic_string.h (insert(__pos, __s, __n)):
        Optimize by avoiding temporaries and working "in-place" when possible.
        (insert(__pos1, __str)): Call insert(__pos1, __str, __pos2, __n).
        (insert(__pos1, __str, __pos2, __n)): Call insert(__pos, __s, __n).
        * testsuite/21_strings/insert.cc (test02): New testcases.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]