How to find all indices of an associative array

In reply to mseyunni:

It’s difficult to know what you are trying to accomplish. When you say " to list all the indices of an associative array". Do you mean you want to print a list, or do you want to construct an array containing all the indices

  foreach(in_use[i]) begin
      $display("%0d",i);
    end

index_q = in_use.find_index with (1);