RTI Connext Traditional C++ API
Version 7.0.0
|
Instantiates FooSeq
< char* > with value type semantics.
More...
Instantiates FooSeq
< char* > with value type semantics.
StringSeq is a sequence that contains strings.
Even though the element type is a char*
, i.e. a pointer, the sequence semantically behaves as a sequence of char* value types. When a DDS_StringSeq is copied or deleted, the contained strings are also respectively copied or deleted.
Important: Users of this type must understand its memory management contract.
It is also worth noting that the element type of a string sequence is char*, not const char*. It is therefore incorrect and dangerous, for example, to insert a string literal into a string sequence without first copying it into mutable memory.
In order to guarantee correct behavior, it is recommended that the contained elements always be manipulated using the string support API's described in String Support.