/
String class concepts

String class concepts

For the string class the key concepts are:

  • Don’t do reference counting. A lot of C++ books in the 90’s got very excited about string classes which would do copy on write. It’s an example of a premature optimization before people started writing multi-threaded applications.

 

Related content

Named prefixes with C++ and our string class
Named prefixes with C++ and our string class
More like this
Reference Counting
Reference Counting
More like this
What are classes and methods in C++?
What are classes and methods in C++?
More like this
What is a string in the context of software?
What is a string in the context of software?
More like this
Operator Overloading
Operator Overloading
More like this
Initializing data in C/C++
Initializing data in C/C++
More like this