|
楼主 |
发表于 2003-9-28 23:19:27
|
显示全部楼层
想起来了,书上说string是由basic_string派生来的。光顾在索引里找string了,忘了basic_string了,呵呵,谢谢。
找到原文了:
*****************
Although we usually treat the C++ string as a class, this is really not the case. The string type is actually a specialization of a more general constituent, the basic_string< > template. Observe how string is declared in the standard C++ header file:
typedef basic_string<char> string; |
|