PeepEvents

hello everyone

i was trying to use the Funtion SDL_PeepEvents() but i don0t quite get it.
and it’s not well explained in the doc.

can anyone give a simple example
thanks a lot.