simple iir filter implementation in C++
In my opinion, you could use a couple of easiest and more optimized solutions, unless you need only that filter and you want to avoid third party or extra library/files:

SigPack: http://sigpack.sourceforge.net/index.html
Kfr: https://www.kfr.dev/

Cheers.