SWI-Prolog comes bundled with SWI-cpp.h and as of version 8.5.18 with SWI-cpp2.h.
SWI-cpp.h
SWI-cpp2.h