Is there a C++ API document and usage examples?

Good point. And thanks a lot for your comment about https://github.com/dmlc/xgboost/issues/4893. I appreciate it. We can always use more comments like this, to improve quality of C++ codebase.