RTI Connext Modern C++ API
Version 6.0.1
|
Trait that indicates if a type is suitable to be the type of a dds::topic::Topic. More...
#include <TopicTraits.hpp>
Inherits false_type.
Trait that indicates if a type is suitable to be the type of a dds::topic::Topic.
When a type T meets this requirement the is_topic_type<T> inherits from dds::core::true_type
and defines a member constant is_topic_type<T>::value
that is true. For all other types it inherits from dds::core::false_type
and defines value
to false.
Types generated by rtiddsgen (except for those annotated with @nested
), dds::core::xtypes::DynamicData and the Builtin types all meet this requirement.
Attempting to instantiate a dds::topic::Topic<Foo> if is_topic_type<Foo>::value is false results in a compilation error.