Expose C++ free function.