Sdílet prostřednictvím


CFixedStringT::operator =

Nové inicializaci existující CFixedStringT objekt s novými daty.

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 
);

Parametry

  • str
    Řetězec zakončený zkopírovat do tohoto CFixedStringT objektu.

  • psz
    Existující CFixedStringT zkopírovat do tohoto CFixedStringT objektu.

Poznámky

Je třeba věnovat pozornost paměť výjimky může dojít při každém použití operátoru, protože nové úložiště je často přiděleno výsledný CFixedStringT objektu.

Požadavky

Záhlaví: cstringt.h

Viz také

Referenční dokumentace

Třída CFixedStringT