The dst and src arguments are stored in the schedule as references. The associated objects must persist for the lifetime of the constructed schedule. (There are no such requirements for the shift-amount array).