How long was the string available before standardization?

C ++ was officially standardized in 1998, but how far back can we find a class with a name stringthat looks like std::stringC ++ 2003 in a pre-standard implementation of C ++?

I ask because CString, as part of the MFC, I have been โ€œthereโ€ since 1992, and I am trying to determine if this was first noticed before or after what has become of time std::string.

+5
source share
2 answers

Good before. In 1992, they continued to ride their own string classes. Remember that std::stringinitially it was terrible, and then it became terrible and a container in the STL style, but it was very late, because the Committee delayed the first Standard for two years to fit into the STL and all that Stepanov needed. Therefore, std::stringit was not finalized until the end.

+5
source

You may find it somewhat similar until 1998, but in Practice, it was a few years after the standard before you could more or less count on what is there. And earlier alone were at best โ€œsimilarโ€; I remember that the absence push_backin one of the committee projects (the last one, I think) was an obvious oversight that did not happen if someone executed the version with the function.

+2
source

All Articles