# C++ templates in PyRoot

**URL:** <https://root-forum.cern.ch/t/c-templates-in-pyroot/12397>\
**Category:** ROOT\
**Created:** [May 10, 2011, 9:19am UTC](https://root-forum.cern.ch/t/c-templates-in-pyroot/12397 "2011-05-10T09:19:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![psteinb](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/48db29/32.png) [@psteinb](https://root-forum.cern.ch/u/psteinb)\
**Post date:** [May 10, 2011, 9:19am UTC](https://root-forum.cern.ch/t/c-templates-in-pyroot/12397/1 "2011-05-10T09:19:48Z")

</div>

Hi there,

I was wondering, how/if PyRoot can handle templated classes from C++? I know that SWIG can do it by providing a special control sequence which in the end perhaps creates an specific instance of the templated class.  
I couldn’t find any information on the matter for PyRoot though. Maybe I oversaw it (Sorry in that case!). Perhaps the LinkDef file is a valid ansatz to handle templated classes.

I want to make sure that it can/cannot handle them before I sit down and write some code.

Cheers,

Peter

---

_[View the full topic](https://root-forum.cern.ch/t/c-templates-in-pyroot/12397)._
