J
JC
For as long as I could remember, basic_string never had a back() member. Ina 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 anevolution 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
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 anevolution 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