Using the C++ Math Library | ![]() ![]() |
Structure Field Indexing
The two versions of the field()
member function let you reference the field of a structure. For example, A.field("name")
accesses the contents of the field called name
within the structure A
.
The second non-const
signature supports calls that are targets of the assignment operator and modify the contents of a field.
mwArray field(const char *fieldname) const; mwSubArray field(const char *fieldname);
![]() | Cell Content Indexing | User-Defined Conversions | ![]() |