重新初始化新数据的现有 CFixedStringT 对象。
CFixedStringT< StringType, t_nChars >& operator =(
const CFixedStringT< StringType, t_nChars >& str
);
CFixedStringT< StringType, t_nChars >& operator =(
const char* psz
);
CFixedStringT< StringType, t_nChars >& operator =(
const wchar_t* psz
);
CFixedStringT< StringType, t_nChars >& operator =(
const unsigned char* psz
);
CFixedStringT< StringType, t_nChars >& operator =(
const StringType& str
);
参数
str
要复制的一个Null终止的字符串到此 CFixedStringT 对象。psz
要复制的现有 CFixedStringT 到此 CFixedStringT 对象。
备注
您应了解内存但仍会发生异常,只要使用赋值运算符,因为经常分配新的存储保存发生的 CFixedStringT 对象。
要求
Header: cstringt.h