In this final article in the series covering temporary variables, Jun Nakamura explains how you can test whether a variable is temporary or not, by using the ternary conditional operator.
This operator takes an expression to evaluate, then an expression to evaluate whether the condition is true and an expression to evaluate whether the condition is false. The first expression is implicitly converted to bool and if it is true, the result of the conditional expression is the second expression, otherwise that of the third expression.