Share via


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

Parameters

  • str
    A null-terminated string to be copied into this CFixedStringT object.

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

Remarks

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.

Requirements

Header: cstringt.h

See Also

Reference

CFixedStringT Class

Other Resources

CFixedStringT Members