How to use L-BFGS in the C++ LibTorch?

Hi!

How to use L-BFGS in the C++ LibTorch?
Particularly, how to implement “closure function” in C++?

Would you please offer an example using L-BFGS?

Thank you!