An academic C++ programming course http://www.dcs.bbk.ac.uk/~roger/cpp/week6.htm says that
In C++ a string behaves in many ways like a vector of char elements; in particular, you can use the square-bracket operator to access a single character.
Therefore, after reading in many ways similar, I understand there are some differences.
- What are the diffrences between an std::string and std::vector?
- What is exactly an std::string internally, if it is not a 100% std::vector?