Uvm_analysis_fifo: search for an element in entire FIFO

How can I search for an element in the entire uvm_analysis_fifo.

Lets say I have an out of order comparator. How do I look for an output element among all the input elements stored in an uvm_analysis_fifo.

In reply to sharatk:

Don’t use a FIFO for this purpose. Instead put the write transactions in an associative array or queue.

In reply to dave_59:

Thanks Dave. I guess I was getting lazy and not wanting to write a “write function”