Rules and Behavior Templates are useful when you must align several arrays relative to one another, but there is no need to declare a single array that spans the entire index space of interest.
Templates can also be useful in making assertions about the mapping of dummy arguments.
Templates are not passed through the subprogram argument interface. Returning from a subprogram causes all templates declared local to that subprogram to become undefined. In this case, all templates declared by the directive must have the same rank. On syntax rules for all HPF directives, see Section 15.3.1 . On explicit-shape arrays, see Section 5.1.4.1 .