Sunday, August 4, 2013

History of and support for std::basic_string::back()

Newsgroup: comp.lang.c++

Subject: History of and support for std::basic_string::back()

From: JC <jason.cipriani@...>

Date: Fri, 2 Aug 2013 17:43:27 -0700 (PDT)



For as long as I could remember, basic_string never had a back() member. In a recent discussion somewhere else, I went digging for a C++ standard and found http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3690.pdf, looking for evidence that back() was indeed not standard in C++.



Yet, it's right there, in 21.4.5.10.



My questions are:



1. Has this always been the case? If so, then why are there so many STL implementations that don't seem to have back()? If not, then when was it added?



2. Most documentation references to back() say "since C++11". Is C++11 an evolution of the C++ standard, reflected in revisions to the C++ specifications? Or is there a separate, distinct "C++11" specification? If the former, where can I find the last version of C++ that wasn't considered C++11?



Thanks!

Jason







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?57420-History-of-and-support-for-std-basic_string-back()&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

No comments:

Post a Comment