C++ erlang term format interface