I was just looking through implementation of non local means algorithm via google (thanks google for code search) and come across this function mirror.
temp
It is a variable declaration, and it is equivalent to this:
const int32 alpha = src%size;
This is a variable declaration. A declaration of the form:
type variablename = value;
is essentially equivalent to:
type variablename(value);
This is the case regardless of what type
is - whether it is a user-defined class or a built-in type. Note that the reverse is not always the case - the =
syntax requires that there be an accessible copy constructor.
For similar reasons, you can cast arithmetic types using the constructor syntax, as in: x = int(42.0);