C++ was formally standardised in 1998, but how far back can we find a class named string that looks like std::string does in C++2003 in a pre-standard C++ implementation?
I ask because CString, as part of MFC, has been “out there” since 1992 and I’m trying to determine whether it was first seen before or after what eventually became std::string.
Well before. In 1992 everybody was still rolling their own string classes. Remember that
std::stringwas originally terrible, and then it became terrible and an STL-style container- but that was very late in the process, as the Committee delayed the first Standard for two years to fit in the STL and everything Stepanov needed. Sostd::stringwasn’t finalized until fairly late.