I taught how STL containers are similar to EA, I think it can also be extended to stl pointers:
Forward Engineering:
You can define collection classes for different multiplications around the world in the language settings or for a specific class of your project (this will determine how it is "contained" in other classes) this way . A simple example:

Make sure the container classes are for the target class of the association, not the source. Set the multiplicity of the target role to several (different from 0, 0..1, 1 and empty fields according to the code template). In addition, set the association target role restriction to a value to avoid creating a container pointer.
Another, more flexible way would be to change the code templates in the settings β Code generation templates. I believe there is a way to override the default template for stereotyped connectors, although I have never tried. This is probably the only way to generate STL pointers, since collection class definitions are used only by EA for multiplicities greater than 1.
Reverse Engineering :
Go to Tools-> Options-> Engineering-> C ++ Source Code and add the following line to the "Extra Collection Classes":
vector<#TYPE#*>;deque<#TYPE#*>;list<#TYPE#*>;stack<#TYPE#*>;queue<#TYPE#*>;priority_queue<#TYPE#*>;set<#TYPE#*>;map<*,#TYPE#*>;multiset<#TYPE#*>;multimap<*,#TYPE#*>;
I have never tried, but I assume adding STL pointers to this is trivial.
Circular Technique
I do not know if this works higher if you are doing a circular motion technique. I assume that the definitions are asymmetrical and cause problems.
Gabor Herman
source share