Method to return all the indices of an associative array

Can someone help with a method that will return all the indices of an associative array without “with” clause.

In reply to naveensv:

You can do

int AA[T];
T indexes[$];

foreach(AA[index]) indexes.push_back(index]);

// or
indexes = AA.find_index() with(1);

Thank you Dave.