Changing what a function returns

When a function returns an «existing type», it is returned by type pointer. You can set if the function returns by "value"(), by "pointer"(*) or by "reference"(&).

Procedure

  1. Right‑click the function/operation and select Features to open the Features window.
  2. On the Properties tab, find the CPP_CG::Type::ReturnType property.
  3. Change the value to any of the following choices:
    • $Type* to return by "pointer"(*)
    • $Type to return by "value"()
    • $Type& to return by "reference"(&)
  4. Click OK.

Feedback