am i correct in understanding that the _> operaor will work in the following way
[code]
pt_ptr _>y = pt_ptr->y - 3.0;
decreases the value of element y in sturture pointed by pt_ptr by 3
am i correct in understanding that the _> operaor will work in the following way
[code]
pt_ptr _>y = pt_ptr->y - 3.0;
decreases the value of element y in sturture pointed by pt_ptr by 3
Assuming pt_ptr is a pointer to a structure that defines a y member and actually points to something, and that the y member is an arithmetic type (probably double), yes. It does what you think. But when typing the arrow operator, be careful that you don't hold the shift key down until the second half of the token. _> is a syntax error.
When writing a specialization, be careful about its location; or to make it compile will be such a trial as to kindle its self-immolation.