|
On 12=D4=C228=C8=D5, =CF=C2=CE=E73=CA=B124=B7=D6, "multics.cn" <multics...@g=
mail.com> wrote:
Good day, c++ guys.
I have a question about char_traits of user defined "char" type. I
need a string type, which supports "long" as its "char" type, so I
defined a lstring like this:
typedef basic_string<long> lstring;
but I did not define template <> char_traits<long> {...};
It seems following code works:
lstring aLongString;
int aLongString.length();
I do not quite understand the roll of char_traits, can anyone help to
clearify?
Thanks.
what? I am a new user fot this ,SO just try ,
.
|