RTI Connext Modern C++ API  Version 6.1.2
dds::core::policy::policy_id< Policy > Class Template Reference

Obtains the QosPolicyId of a QoS Policy. More...

#include <PolicyTraits.hpp>

Detailed Description

template<typename Policy>
class dds::core::policy::policy_id< Policy >

Obtains the QosPolicyId of a QoS Policy.

Template Parameters
AQoS policy from the namespaces dds::core::policy or rti::core::policy

Specializations for each QoS policy provide the following constant:

static const dds::core::policy::QosPolicyId value;

For example, the policy ID for the dds::core::policy::Deadline policy is dds::core::policy::policy_id<dds::core::policy::Deadline>::value.