What is the point of STL Character Traits?
问题 I notice that in my copy of the SGI STL reference, there is a page about Character Traits but I can't see how these are used? Do they replace the string.h functions? They don't seem to be used by std::string , e.g. the length() method on std::string doesn't make use of the Character Traits length() method. Why do Character Traits exist and are they ever used in practice? 回答1: Character traits are an extremely important component of the streams and strings libraries because they allow the