pub fn check_owner_multi(
account: &AccountView,
owners: &[&Address],
) -> Result<usize, ProgramError>Expand description
Check that an account is owned by one of the given program IDs.
Used for multi-program interfaces (e.g., Token vs Token-2022). Returns the index of the matching owner, or error.