Quote:
|
Ironically, strings include their own swap method
|
The object of this thread, was to learn the usage of namespaces and object oriented C++, by creating your own implementation of some standard provided features.
Quote:
|
which is much more efficient - it takes a constant time of operation instead of copying every character.
|
Then compare it to the version, where you parse by reference.. You'll soon notice they are the same.