isReferenceToMutable

Is parameter a reference to a mutable value?

This is used if an argument has a corresponding Parameter. The argument type is necessary if the Parameter is inout.

  1. bool isReferenceToMutable(Type t)
  2. bool isReferenceToMutable(Parameter p, Type t)
    bool
    isReferenceToMutable

Parameters

p Parameter

Parameter to check

t Type

type of corresponding argument

Return Value

Type: bool

true if it's a pointer (or reference) to mutable data

Meta