C++ publish-subscribe API sample code to UniversalMessaging

Hi,
We are migrating from Broker to UM. We have one client using C API to publish-subscribe to Broker; now we want CPP sample code to do same on UniversalMessaging.
Anyone have working sample? Please share.

Thank you in advance.