DDS_StringSeq Struct Reference
[Built-in Sequences]

Instantiates FooSeq < char* > with value type semantics. More...


Detailed Description

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.

See also:
String Support
Instantiates:
<<generic>> FooSeq
See also:
FooSeq

RTI Connext C++ API Version 4.5f Copyright © 17 Mar 2012 Real-Time Innovations, Inc