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: debug shrink_to_fit


... the below is what I tested and I'm committing. Note that __shrink_to_fit_aux is actually not so simple: being the request non binding, we don't want to do anything if the type isn't copy constructible and the move constructor can throw, whereas, per se, move_if_noexcept would just move in that case. Also, I decided to open code the vector<bool> case, otherwise the generic code for vector would have copied bit-by-bit, horrible performance-wise.

Tested x86_64-linux.

Thanks,
Paolo.

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

Attachment: CL_shrink_to_fit_debug
Description: Text document

Attachment: patch_shrink_to_fit_debug
Description: Text document


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