RTI Connext Modern C++ API  Version 6.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dds::topic::is_topic_type< T > Struct Template Reference

Trait that indicates if a type is suitable to be the type of a dds::topic::Topic. More...

#include <TopicTraits.hpp>

Inherits false_type.

Detailed Description

template<typename T>
struct dds::topic::is_topic_type< T >

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.


RTI Connext Modern C++ API Version 6.0.1 Copyright © Sat Nov 23 2019 Real-Time Innovations, Inc