If you are looking for new CPP function to be executed on Tensorflow. Firstly we need to register  CPP op in Tensorflow. Read this 7 guide to get more idea on how to create an op.
CPP functions are available on Tensorflow. Read for more TensorFlow C++ API Reference  |  TensorFlow Core v2.7.0 3