lesnogc.blogg.se

C&c mega 30
C&c mega 30






When deep copies of objects have to be made, exception safety should be taken into consideration. Also, the C++ Standard Library requires this behavior for some user-supplied types. This is consistent with the behavior of assignment operator for built-in types ( returning the assigned value) and allows for using the operator invocation as an expression, for instance in control statements or in chained assignment. However, the operator is usually defined to return a reference to the assignee. The language permits an overloaded assignment operator to have an arbitrary return type (including void).

c&c mega 30

Return value of overloaded assignment operator

c&c mega 30

  • 1 Return value of overloaded assignment operator.







  • C&c mega 30