Use PtrVector to get for_in iteration