Best way to spawn particles on death in c++

What would be the best way of spawning a particle effect when an unit dies in the game? the particles should play like it does in something like Wind waker where it disappears after awhile