# How to create Parameterized Classes (C++ Templates)?

**URL:** <https://forums.visual-paradigm.com/t/how-to-create-parameterized-classes-c-templates/8964>\
**Category:** General Questions/Discussions\
**Created:** [June 14, 2006, 4:48am UTC](https://forums.visual-paradigm.com/t/how-to-create-parameterized-classes-c-templates/8964 "2006-06-14T04:48:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SFLeBrun](https://avatars.discourse-cdn.com/v2/letter/s/838e76/32.png) [@SFLeBrun](https://forums.visual-paradigm.com/u/SFLeBrun)\
**Post date:** [June 14, 2006, 4:48am UTC](https://forums.visual-paradigm.com/t/how-to-create-parameterized-classes-c-templates/8964/1 "2006-06-14T04:48:06Z")

</div>

Hi,

In my class diagram, there is a parameterized class (template). I want to create an instance of that template and show the bound element.

In other words, I have the following in my code:

```auto

template <class Type>
class foo
{
   ...
};

class bar
{
   ...
};

```

How do I represent the template instantiation foo in a class diagram?

I have defined both the template class and the class that will be used to define the template instantiation. I want to show the binding of the template parameter in the diagram without creating a third class, assuming that it is possible.

VP-UML 5.2

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [June 26, 2006, 8:53pm UTC](https://forums.visual-paradigm.com/t/how-to-create-parameterized-classes-c-templates/8964/2 "2006-06-26T20:53:59Z")

</div>

Hi SFLeBrun,

Sorry for the late reply. Also sorry that we do not support what you want at this moment. But it is now under development. We will support that in about September.

Best Regards,  
Jick
