Поделиться через


CFixedStringT::operator =

Reinitializes an existing CFixedStringT object with new data.

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
    A null-terminated string to be copied into this CFixedStringT object.

  • psz
    An existing CFixedStringT to be copied into this CFixedStringT object.

Заметки

You should be aware that memory exceptions may occur whenever you use the assignment operator because new storage is often allocated to hold the resulting CFixedStringT object.

Требования

Header: cstringt.h

См. также

Основные понятия

CFixedStringT Class

CFixedStringT Members