Just like the implementation you link is a third-party repository, you’d have to implement that yourself.
From a cursory look, it should not be too hard to transpose the Python code into C++ equivalents.
Best regards
Thomas