Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++11 variadic template parameters notation in UML

Tags:

c++

c++11

uml

Does anyone know how to model C++11 variadic template parameters correctly in UML 2.2?
I've seen a number of UML profile models as a result from web-search, that seem to describe the construct of 'any number of optional template parameters'. Or do I just confuse this with the fact that any usual template parameter might be optional when a default is provided in the declaration?

Can someone refer to appropriate links or specific sections of the UML 2.2/2.3 specs?

Here's a proposal I've been creating with enterprise-architect: Variadic Template Parameters Model Sample

UPDATE:
I'm especially interested in how the binding for unpacking mechanisms could be modeled.

like image 207
πάντα ῥεῖ Avatar asked Oct 21 '22 02:10

πάντα ῥεῖ


1 Answers

OK, since nobody seems to have an answer I'm going to answer my question with what I've come up:

enter image description here

It's just a slightly modified model of the first proposal I gave in the question. At least with enterprise-architect I'm able to generate a syntactically correct and usable code skeleton. It's not possible to reverse engineer the generated code though.

like image 198
πάντα ῥεῖ Avatar answered Oct 24 '22 03:10

πάντα ῥεῖ