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] |
This adds the new C++11 pop_back() member to <string>, <debug/string> and <ext/vstring.h>, as added by LWG 534. * include/bits/basic_string.h (basic_string::pop_back): Define. * include/ext/vstring.h (versa_string::pop_back): Define. * include/debug/string (basic_string::pop_back): Define. * testsuite/21_strings/basic_string/pop_back.cc: New. * testsuite/ext/vstring/pop_back.cc: New. I also moved the non-const at() overload adjacent to the const at() overload, they had got separated. Tested x86_64-linux, any objections to committing? Is there a more efficient implementation than erase(size()-1, 1) ?
Attachment:
pop_back.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |