| MATLAB Compiler | ![]() |
mwString& operator=(const mwString& str)
C++ syntax
#include "mclcppclass.h" mwString str("This is a string"); mwString new_str = str; // new_str contains a copy of the data // in str.
Arguments
str. String to make a copy of.
Return value
A reference to the invoking mwString object.
Description
Use this operator to copy the contents of one string into another.
| operator const char* () const | mwString& operator=(const char* str) | ![]() |
© 1994-2005 The MathWorks, Inc.